I seem to have to maunally click "Download Sources and Documentation" after each clean install, is there a way to get this to happen by default?
Asked
Active
Viewed 2.4k times
2 Answers
38
It is also a setting on the Import Project/Module screen, or available via settings under Maven > Importing: Automatically download sources/documentation
If you want to change this setting across all projects change the above option in File > Other Settings > Default Settings
-
Couldn't find the "Other Settings", but there is _Preferences > Build, Execution, Deployment > Build Tools > Maven > Importing > Automatically Download_ – Qw3ry Sep 16 '22 at 09:27
-
1In 2023 look under File -> New projects setup -> Settings for new projects – Thorbjørn Ravn Andersen Mar 13 '23 at 10:31
3
Intellij is ultimately using maven to download sources and documentation. So you need to configure maven.
Please see: https://stackoverflow.com/questions/5780758/maven-always-download-sources-and-javadocs
So your sources and javadocs will be automatically downloaded whenever you do clean install.
Rahul Bansal
- 66
- 4