Graph Maven Plugin

Create customizable dependency graphs for Maven projects using Graphviz. The Graphviz "dot" executable needs to be installed and in your path for the plugin to produce graphs - http://www.graphviz.org/

There are mature, stable, executables for Linux, Mac, Solaris and Windows available for download from the Graphviz website

Example Graphs

  • Graph #1 shows dependencies on logging libraries used by this plugin
  • Graph #2 is the same graph drawn in FLAT mode
  • Graph #3 is the default graph produced by this plugin. It is the complete transitive closure for the dependencies of a project with styling for scope/optional. If Maven's conflict resolution logic replaces a dependency it is highlighted with a red line labeled "conflict"
  • The Dependency Graphs report has a more comprehensive set of examples.

Plugin Documentation

  • Plugin goals support generating a single graph, multiple graphs, and generating a report during Maven site generation.