'How to find package that declares a managed maven dependency
While upgrading dependencies in a project I ran across this issue:
[INFO] --- dependency-management-maven-plugin:0.11:analyze (basepom.default) @ svc-foo ---
[ERROR] Version mismatch for org.liquibase:liquibase-core:jar, managed version 4.5.0 does not match project version 4.9.1
My question is: How do I find out which package or artifact declares that liquibase-core is a managed dependency and should be at version 4.5.0?
- Firstly, I know how to solve the issue (by overwriting the managed dependency in my own pom). That is not the question.
- Liquibase is not declared as managed dependency in our base pom or anywhere in the direct inheritance chain.
mvn dependency:treedoes not show it, as liquibase is not included as actual dependency anywhere else but in my own pom. But it is seemingly declared as managed with version 4.5.0 somewhere.- I tried all maven goals/command I could find. I read the maven docs. I searched here on stackoverflow. What did I overlook?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
