How to view maven dependency hierarchy in intellij
MavenIntellij IdeaMaven 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.
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.
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.
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
Solution 5 - Maven
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.