# Attaching Sources and JavaDoc to Maven Project

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 pom.xml modification:


The following command downloads and attaches the sources to all dependencies listed in pom.xml:



mvn dependency:sources



With the optional classifier parameter, you can download and attach a javadoc jar to the project.



mvn dependency:sources -Dclassifier=javadoc




See you at Java EE Workshops at Munich Airport, Terminal 2 or Virtual Dedicated Workshops / consulting
