Reputation: 141
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
Upvotes: 0
Views: 90
Reputation: 82
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.
Upvotes: 0