How do I download sources from Maven?
Category:
technology and computing
search
To download sources for dependencies of maven project, right click on project → Maven → Download Sources . Similarly to download JavaDoc for dependencies of maven project, right click on project → Maven → Download JavaDoc .
Subsequently, one may also ask, how do I download Maven dependencies?
How to use maven just to copy dependencies
- 1 - First make sure you have installed maven. From the console type: mvn -version.
- 2 - Create a pom. xml file in the parent folder for the folder you wish to download all the libraries.
- 3 - Execute the command to download the libraries.
- 5 - Configure your proxy (If needed)
Moreover, what does Maven generate sources do?
Generate source code jar for Maven based project. The “maven-source” plugin is used to pack your source code and deploy along with your project. This is extremely useful, for developers who use your deployed project and also want to attach your source code for debugging.
Right Click the JAR file in Project Explorer -> Properties -> From the left pane choose Javadoc Location -> enter the URL of your jar documentation.
2 Answers
- download as many Javadoc packages as you want (they should be in zip or jar archives).
- Open your Eclipse preferences, and navigate to Java -> Installed JREs .