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
NEW online workshop: Web Components training (online)