Maven Dependency Graph Plugin

Generates a text representation (e.g. ASCII-art) of a dependency graph

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.github.mdr
ArtifactId

ArtifactId

maven-dependencygraph-plugin
Last Version

Last Version

0.0.4
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Maven Dependency Graph Plugin
Generates a text representation (e.g. ASCII-art) of a dependency graph
Project URL

Project URL

https://github.com/mdr/maven-graph-plugin
Source Code Management

Source Code Management

https://github.com/mdr/maven-graph-plugin

Download maven-dependencygraph-plugin

How to add to project

<plugin>
    <groupId>com.github.mdr</groupId>
    <artifactId>maven-dependencygraph-plugin</artifactId>
    <version>0.0.4</version>
</plugin>

Dependencies

compile (7)

Group / Artifact Type Version
org.apache.maven : maven-artifact jar 2.2.1
org.apache.maven : maven-plugin-api jar 2.2.1
org.apache.maven : maven-project jar 2.2.1
org.apache.maven : maven-model jar 2.2.1
org.apache.maven : maven-core jar 2.2.1
org.apache.maven : maven-artifact-manager jar 2.2.1
com.github.mdr : ascii-graphs_2.10 jar 0.0.6

test (1)

Group / Artifact Type Version
junit : junit jar 4.8.2

Project Modules

There are no modules declared in this project.

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 only
  • graph.vertical -- if true, layers flow top to bottom, else left to right
  • graph.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:

Versions

Version
0.0.4
0.0.3
0.0.2
0.0.1