TOOL

Maven

maven-dependency:tree

Maven has many plugins. One of them, the maven-dependency plugin has several goals. The tree goal can produce a graph output.

All formats contain basically a list of dependencies in coordinate form groupId:artifactId:version and their depends-on relationship. The JSON format is a more detailed, non-standard format with entries formatted as

{
  "groupId": "net.openhft",
  "artifactId": "zero-allocation-hashing",
  "version": "0.27ea0",
  "type": "jar",
  "scope": "compile",
  "classifier": "",
  "optional": "false"
}

Output Formats

Frequently Asked Questions

What graph file formats does Maven support?

See the list on this page — it shows every format maven-dependency:tree can write.

How do I import a graph into Maven?

You don't. Mavens maven-dependency:tree just writes graphs from the pom.xml, transitively.

How do I export a dependency graph from Maven?

Call maven-dependency:tree to export to TGF. It is the most compact, easiest to parse and can be converted voa GraphInOut.com to anything.