0

i have hirarhy of modules. I set up version of hibernate-validator as 6.1.5.Final But when i build project version of library another maven dependencies: tree ouput

org.hibernate:hibernate-validator:jar:5.3.4.Final:compile

I can not understand how it works.

I put all dependency tree here https://paste2.org/CwB2H4W2

Dmitry Shabalin
  • 141
  • 1
  • 9

1 Answers1

0

Problems with dependencies should always bring you to the "Dependency Hierarchy" Tab of your POM.xml. There you will see your projects dependencies, and dependencies of that dependencies.

If I had to guess I'd say there you will find a module providing the dependency you think you don't use.

Further information to maybe change this: First declared dependencies get used first. So if you define your dependency before the Module that brings the other dependency in, Maven should select yours.

Jan Uhlig
  • 82
  • 5
  • What do you mean by "Dependency Hierarchy Tab of your POM.xml"? The POM.xml is a file. Files don't have "tabs". – DodgyCodeException Jun 08 '20 at 15:56
  • @DodgyCodeException For sure you are right, but Maven has a built in plugin maven-dependency-plugin to show dependency-trees, easier to use are functions of IDEs like eclipse for example that shows this, and more, as easy overview. Following gives an instruction to that topic in eclipse, showing those Editortabs. https://stackoverflow.com/questions/10517055/dependency-hierarchy-view-for-maven-in-eclipse-indigo – Jan Uhlig Jun 08 '20 at 17:03
  • @JanUhlig added frull dependency tree – Dmitry Shabalin Jun 11 '20 at 09:32