Reputation: 51159
I have the following descriptions for some Maven entries in Project Structure:
Javadoc file is really absent in filesystem. Simultaneously, it is present in central repository. Why it was not downloaded and how to download it by force?
UPDATE
These options are ON already:
Have tried to recompile, close/open etc after setting them...
Upvotes: 76
Views: 35478
Reputation: 1561
Click on the "maven projects" (make sure tool buttons are on) on the right side of IntelliJ and then click on "Download Documentation".
Also, for future downloading, you can go to File -> Settings -> Build,execution, deployment, -> build tools -> Maven -> importing -> mark "Documentation" checkbox and apply settings.
Upvotes: 137
Reputation: 1141
By the way, if you experience same case with me (working with corporate Maven repository), Maven may be ignoring an opportunity to further download javadoc if it once wasn't there. And to make it request it one more time, you have to remove <artifactId>-<version>-javadoc.jar.lastUpdated
file from .m2/repository/<groupId>/<artifactId>/<version>
, then try again.
Upvotes: 1
Reputation: 41
For me, it worked when I pressed on Download Source and Documentation.
Upvotes: 0
Reputation: 22303
Maven Projects tool window > Icon with green arrow and a box > Download Documentation:
See IntelliJ IDEA documentation for Version 14.1 or current version.
Upvotes: 82