IntelliJ: Easier way to check if a maven artifact is included in the project?

elyor :

Currently, I can use "Find in Path" feature and type the name of the artifact (or search in the pom.xml) to check if the project has that dependency, but this doesn't work for transitive dependencies.

I can generate the dependency tree in IntelliJ (or on command line), but that requires me to lookup the artifact through the entire tree/list, not so convenient.

Is there an easy (more fluent) way of checking this?

vikingsteve :

Yes, just look in the project pane (left hand side).

enter image description here

Under the project structure you will see External Libraries - just expand this tree node and you will see all maven depepencies there. They start with Maven: - just type to search :)

For a proper analysis (showing the location of transitive deps) you can run mvn dependency:tree from the command line.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=116972&siteId=1