Skip to content

This small tool is intended to plot a graph to show the dependencies between Maven modules. It ignores external dependencies and shows only inter-module relationships.

License

Notifications You must be signed in to change notification settings

phxql/maven-to-plantuml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maven to PlantUML

This small tool is intended to plot a graph to show the dependencies between Maven modules. It ignores external dependencies and shows only inter-module relationships.

Download

Check the releases page.

Usage

  1. Run mvn dependency:tree > dep.txt in your project. This generates the dependency tree which is used in the next step.
  2. Run java -jar maven-to-plantuml.jar --input dep.txt --output dep.puml. This transforms the dependency tree output to a PlantUML diagram.
  3. Run plantuml dep.puml. This will render the PlantUML diagram to a PNG file.
  4. View the file dep.png.

Advanced

usage: maven-to-plantuml
    --console-output   Instead of generating a PlantUML file, print the
                       dependency graph to the console
 -e,--exclude <arg>    Artifact names of modules to exclude. Separated by
                       comma.
    --help             Prints this help
 -i,--input <arg>      Input file
 -o,--output <arg>     Output file

Example

The graph of the example project, run with --input dep.txt --output dep.puml --exclude example produces this PlantUML file and is rendered to this graph:

Building

Run ./mvnw clean package and check the target folder.

License

Licensed under GPLv3.

About

This small tool is intended to plot a graph to show the dependencies between Maven modules. It ignores external dependencies and shows only inter-module relationships.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages