Join the DZone community and get the full member experience.
Join For Free
Discover how AppDynamics steps in to upgrade your performance game and prevent your enterprise from these top 10 Java performance problems, brought to you in partnership with AppDynamics.
The dependency:tree goal of the Maven plugin dependency
supports various graphical outputs from the version 2.4 up. This is how
you would create a diagram showing all dependencies in the com.example
group in the dot format:
mvn dependency:tree -Dincludes=com.example-DappendOutput=true -DoutputType=dot -DappendOutput=true -DoutputFile=/path/to/output.dot
To actually produce an image from .dot you can use one of .dot renderers, f.ex. this online dot renderer (paste into the right text box, press enter).
You could also generate the output f.ex. in the graphml format & visualize it in Eclipse.
The Java Zone is brought to you in partnership with AppDynamics. AppDynamics helps you gain the fundamentals behind application performance, and implement best practices so you can proactively analyze and act on performance problems as they arise, and more specifically with your Java applications. Start a Free Trial.