Maven2 dependency plugin

maven dependency plugin - It can download source jars and show you a dependency tree.

Published: Tuesday, 22 June 2010

dependency:sources

Intellij can do this when importing a maven project, but it can slow it down. Instead, you can use the dependency:sources goal to download source code jars. usage:

mvn dependency:sources

You can do this while IntelliJ is running - it will automatically detect the new sources.

Visit the Dependency Plugin documentation.

dependency:tree

This is useful to know why a particular jar is being imported. I’ve had instances where multiple versions or clashing libraries were being imported.