How to view maven dependency hierarchy in intellij

前端 未结 8 1236
萌比男神i
萌比男神i 2021-02-01 11:47

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

相关标签:
8条回答
  • 2021-02-01 11:59

    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.

    0 讨论(0)
  • 2021-02-01 12:00

    Select Module or Directory and then Analyze from main menu

    0 讨论(0)
  • 2021-02-01 12:02

    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.

    0 讨论(0)
  • 2021-02-01 12:06

    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.

    0 讨论(0)
  • 2021-02-01 12:09

    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".

    0 讨论(0)
  • 2021-02-01 12:18

    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.

    0 讨论(0)
提交回复
热议问题