![](/style/images/good.png)
![](/style/images/bad.png)
Visualize Maven Project Dependencies with dependency:tree and Dot Diagram Output
source link: https://blog.jakubholy.net/2012/01/13/visualize-maven-project-dependencies-with-dependencytree-and-dot-diagram-output/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Visualize Maven Project Dependencies with dependency:tree and Dot Diagram Output
mvn dependency:tree -Dincludes=com.example -DappendOutput=true -DoutputType=dot -DoutputFile=/path/to/output.gv
(The output is just a text file with the extension Graphviz gv.)
To actually produce an image from the dot file 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.
Note: Thanks to the reader Not Relevant for pointing out the right extension and a typo.
![pixel.gif](https://interclue/content/cluecore/skins/default/pixel.gif)
![pixel.gif](https://interclue/content/cluecore/skins/default/pixel.gif)
![pixel.gif](https://interclue/content/cluecore/skins/default/pixel.gif)
![pixel.gif](https://interclue/content/cluecore/skins/default/pixel.gif)
Are you benefitting from my writing? Consider buying me a coffee or supporting my work via GitHub Sponsors. Thank you! You can also book me for a mentoring / pair-programming session via Codementor or (cheaper) email.
Allow me to write to you!
Let's get in touch! I will occasionally send you a short email with a few links to interesting stuff I found and with summaries of my new blog posts. Max 1-2 emails per month. I read and answer to all replies.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK