Maven2 dependency plugin

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 open - 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 used. I've had instances where multiple versions or clashing libraries were being imported.

Published: Tuesday, 22 June 2010