3

I have a project with lots of dependencies. There is a conflicting dependency in my pom, IDEA shows the dependency was imported from a bom that I did't use. I want to exclude it, but I can't find where the bom(not the jar) has been imported. I have tried dependency:tree, it does not show boms, only jars. Is there any way to show where boms have been imported?

两极化
  • 113
  • 1
  • 6
  • 1
    If the BOM is not in your POM, it is either defined in the parent POM (or their parent...) or it is part of another BOM. I would start by searching the parent POM hierarchy. – J Fabian Meier Aug 11 '21 at 06:52
  • 1
    Check your parent hierarchy or `` tag in your POM. The BOM should be coming from there. – hiren Aug 11 '21 at 06:58
  • @JFabianMeier I have tried this, but the hierarchy is so complex, may take a lot of time to figure it out in this way... So I wonder if there is a simple way... – 两极化 Aug 11 '21 at 07:07

1 Answers1

2

mvn help:effective-pom -Dverbose will annotate all dependencies with their sources.

talex
  • 17,973
  • 3
  • 29
  • 66