0

Related question: How to view maven dependency hierarchy in intellij enter image description here

I am using Intellij Digram of dependency, I can see the dependency tree but it shows all dependencies till the leaves of the tree, what If I want to see only root, level - 2, and probably level - 3 only? How to do that? Or maybe there is a functionality to filter by group id?

Adelin
  • 18,144
  • 26
  • 115
  • 175
  • What is the problem you want to solve with this? – J Fabian Meier Mar 11 '23 at 09:26
  • When I use the draw, the tree it draws has all the dependencies, I only want to see how my modules are dependant on each other only I don't want to see all added library – Adelin Mar 13 '23 at 08:05
  • There is no such an option. Please vote for the related request: [IDEA-87483](https://youtrack.jetbrains.com/issue/IDEA-87483/Add-filtering-of-non-top-level-project-dependencies-on-Show-Dependencies-Screen) Add filtering of non-top-level project dependencies on Show Dependencies Screen – Andrey Mar 14 '23 at 11:40

1 Answers1

0

Try mvn dependency:tree -Dincludes=your.groupid.*.

This lists all dependencies which have (or start with) the same groupId.

J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142