Accepted answer

to download sources for your dependencies:

mvn eclipse:eclipse -ddownloadsources=true

to attach sources to an installation:

mvn source:jar install

it's also preferable to use the goal source:jar-no-fork in your pom as described on the maven-source-plugin page.


it is quite easy with eclipse, right click the project in project explorer view, click maven menu item , then click download sources..


please use mvn source:jar install to install the maven artifacts.


simple, get your sources and javadocs:

mvn dependency:resolve -dclassifier=javadoc
mvn dependency:resolve -dclassifier=sources

Related Query

More Query from same tag