I am looking for a way to test whether or not any of my explicit dependencies in my pom.xml reference/include any of the same transitive dependencies. For example, if dependency-A
includes junit.jupiter
and dependency-B
also includes junit.jupiter
, I want a way to see this so that I can exclude it from one of them to prevent conflicts.
I saw through this link that you can use mvn dependency:tree
to essentially show all dependencies and their transitive dependencies, but it prints in a fairly unreadable format and it isn't clear through that output what the source of each transitive dependency is.