Search code examples
javamavenintellij-idea

Can the IntelliJ external maven library tell where the dependencies are from?


I am using IntelliJ and maven for dependencies. From the External library, I could see the maven import dependencies.

enter image description here

Something like this, is that possible to know where these dependencies come from? I try to search for com.sun.xml: jaxb-core in the pom file but I can't find exactly that dependency. So is that possible to know where this single dependency comes from? Thanks!


Solution

  • Important - this is for ultimate/paid version only (otherwise for maven based project use - mvn dependency:tree)

    Follow the steps here, I am also attaching the screen shots for better understanding.

    1. Open your POM.xml in the editor -> right click in the editor area -> diagrams -> show dependencies, like below:-

    alternatively use shortcut ctrl+alt+shift+U

    enter image description here

    1. after this a separate window with some hierarchy will show up like below(sorry but for complex dependencies it actually shows up like this):-

    enter image description here

    1. there you can search your dependency by typing ctrl+f and entering the dependency name like jaxb-core or anything upto your case, in my case i searched jackson-core

    2. After little zooming in, you can also click on the line arrows to check where it is coming from and do that until you want to check from which initial dependency is it coming from, refer the image below for this:-

    enter image description here