Get UML class diagrams generation integrated to your maven build.

Came across an extremely poorly coded Java module having 0% KT or documentation in my current engagement. There has been no test cases to begin with, really difficulty to even understand where to start.

“Why not try reverse engineering”, a quick idea, and things started getting fair. 🙂

Here is quick way (maven builds) to get class diagrams generated along with java docs:

1. Download and Install Graphviz from

2. Add  GRAPHVIZ_HOME environment variable.

3. Add following plugin to your maven POM:


Detailed list of additional params can be found at, customize it based on your need.

4. mvn javadoc:javadoc will get the docs and class diagrams generated.

Continue exploring more and keep posted.