How to install Maven artifact with sources from command line?
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.
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