Post

Maven dependency tree

Maven dependency tree

I reach for this the moment I see a version conflict or a ClassNotFoundException that shouldn’t exist. The dependency tree shows you exactly where every transitive dependency is coming from — which is usually how you find the sneaky old version being pulled in by some obscure library.

  • To view entire dependency tree
1
$ mvn dependency:tree
  • To filter or look for a specific dependency
1
$ mvn dependency:tree | grep jsr311
This post is licensed under CC BY 4.0 by the author.