mvn dependency:tree
mvn dependency:analyze
mvn dependency:go-offline dependency:sources -Dmaven.repo.local=/tmp/repo
mvn dependency:go-offline dependency:sources -Dclassifier=javadoc -Dmaven.repo.local=/tmp/repo
mvn clean install -Dmaven.repo.local=/tmp/repo
or add the following to settings.xml default profile:
<properties>
<downloadSources>true</downloadSources>
<downloadJavadocs>true</downloadJavadocs>
</properties>
mvn dependency:go-offline dependency:sources -Dmaven.repo.local=/tmp/repo
mvn dependency:go-offline dependency:sources -Dclassifier=javadoc -Dmaven.repo.local=/tmp/repo