Visualizing dependencies

Modern IDEs include many features to help visualize dependencies.

With the dependency plugin, Maven includes a goal to print the tree of dependencies. The dependency:tree, for example, will be given as follows:

/workarea/development/cartography/$ mvn dependency:tree
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Cartography Application 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ cartography ---
[INFO] com.stepinfo.poc.cartography:cartography:jar:1.0-SNAPSHOT
[INFO] +- mockobjects:mockobjects-core:jar:0.09:test
[INFO] +- ...

Get Apache Maven Dependency Management now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.