How to install Maven artifact with sources?
so later I don\'t need to open a project in eclipse to see some code.
EDIT: I do know I can add
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
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..