How to view maven dependency hierarchy in intellij

前端 未结 8 1234
萌比男神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.

提交回复
热议问题