Plugin to display an ASCII-art dependency graph.
Usage
You can run this without modifying your project with the following command:
mvn com.github.mdr:maven-dependencygraph-plugin:0.0.3:graph
Larger graphs might need to be piped through a pager, e.g. less -S
:
mvn com.github.mdr:maven-dependencygraph-plugin:0.0.3:graph | less -S
Or in a Windows cmd prompt, you can change the buffer width via Properties -> Layout -> Screen Buffer Size -> Width = 9999
You can also customise some of the drawing options using system properties. For example:
mvn -Dgraph.vertical -Dgraph.rounded com.github.mdr:maven-dependencygraph-plugin:0.0.3:graph | less -S
Options
graph.unicode
-- if true (default), use Unicode box-drawing characters, else use ASCII onlygraph.vertical
-- if true, layers flow top to bottom, else left to rightgraph.doubleVertices
-- if true, use double line box characters for vertices (requires graph.unicode)graph.rounded
-- if true, draw corners using rounded characters (requires graph.unicode)
The dependency graph calculation is derived from the existing maven-graph-plugin at: