One of the features of Maven Dependency Plugin is attachment of sources to a project.
The attachment can be accomplished from the command line without any
The following command downloads and attaches the sources to all dependencies listed in
With the optional classifier parameter, you can download and attach a javadoc jar to the project.
mvn dependency:sources -Dclassifier=javadoc
On demand workshops: Java EE 7: Bootstrap, Effective, Testing and Microservices available for streaming.