Maven2 dependency plugin
dependency:sources
Section titled “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:sourcesYou can do this while IntelliJ is running - it will automatically detect the new sources.
Visit the Dependency Plugin documentation.
dependency:tree
Section titled “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.