1:maven command to download the source code and Javadocs
When using Maven in the IDE, if you want to see the source code and Javadoc of the classes in the referenced jar package need to download the source code through the MAVEN command and then introduce it, it is easy to achieve this with the MVN command:
2.
2: Add the configuration file to open Maven profile Setting.xml file (.../.m2/settings.xml) by adding the following configurations:
<profiles> <profile> <id>downloadSources</id> <properties> < downloadsources>true</downloadsources> <downloadJavadocs>true</downloadJavadocs> </properties> </profile> </profiles> <activeProfiles> < Activeprofile>downloadsources</activeprofile> </activeProfiles>
3: Configure Eclipsewindow > Preferences > Maven and checking the "Download Artifact Sources" and "Download Artifact JavaDoc" Options
Maven downloads the jar package to view the source code