How to view maven dependency hierarchy in intellij

MavenIntellij Idea

Maven Problem Overview


I can see the dependency hierarchy in eclipse, how can I do it in intellij ?

Maven Solutions


Solution 1 - Maven

I also like the Maven Helper Plugin.

Allows you to see dependencies as a tree, see conflicts, search in them. It looks a lot like the Eclipse tooling.

Notice the Text and Dependency Analyzer tabs that appear at the bottom of the POM editor panel. Click the analyzer tab to see results as shown in this screenshot.

screenshot of Maven Helper Plugin window

Solution 2 - Maven

You can try: Menu -> View -> Tool Windows -> Maven Projects

And then you can see new view openned.

Open your Dependencies tree, and you can see all the dependency hierarchy.

enter image description here

Solution 3 - Maven

Offical documentation: View Maven dependencies as a diagram

Open the pom.xml, right click anywhere in the editor and choose "Diagrams > Show Dependencies". It opens a dependency tree like those I'm attaching.

The main point is that this context menu appears only on opened pom.xml file (at least I couldn't managed to open it from anywhere else), if you just click on the file in the project tree, it won't be present.

Please note: You need to have UML Support and Maven Integration Extension enabled for this.

enter image description here

Solution 4 - Maven

Use the shortcut Luke! Ctrl + Alt + Shift + U

Or select View -> Tool Windows -> Maven Projects

...here you can either:

A) expand the Dependencies sub-tree,

or

B) select the project ("spring-boot" in my case), a new icon reveals itself

enter image description here

Solution 5 - Maven

Select Module or Directory and then Analyze from main menu

enter image description here

Solution 6 - Maven

I love this plugin Maven Helper, but for some reason it was crashing my IntelliJ:

IntelliJ IDEA 2020.2.1 (Community Edition)
Build #IC-202.6948.69, built on August 25, 2020

I tried updating from the marketplace from within IntelliJ, but for some reason it didn't help. I managed to solve this by installing it from the plugin website Maven Helper by clicking on "Install to IDE".

Solution 7 - Maven

As mentioned @Ondrej Burkert the Maven Helper Plugin you can select the pom.xml file and if the editor is open there are two tabs at the bottom. First is 'Text' and second is 'Dependency Analyser'. In the tab 'Dependency Analyser' you have a tree of all dependencies like in eclipse.

Solution 8 - Maven

Menu -> View -> Tool Windows -> Maven Projects is impractical and must be collapsed one by one. I prefer the plujin mentioned by Basil Bourque in this post.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionzjffduView Question on Stackoverflow
Solution 1 - MavenOndrej BurkertView Answer on Stackoverflow
Solution 2 - MavenAaric ChenView Answer on Stackoverflow
Solution 3 - MavenIvaylo D. IvanovView Answer on Stackoverflow
Solution 4 - MavenJaroslav ZárubaView Answer on Stackoverflow
Solution 5 - MavenCristian FlorescuView Answer on Stackoverflow
Solution 6 - MavenatkuzmanovView Answer on Stackoverflow
Solution 7 - MavenTatjana KopalovaView Answer on Stackoverflow
Solution 8 - MavenLuis Ivan Mera DávilaView Answer on Stackoverflow