I have a maven project which uses dependency "A" with version 2.12.6.
Then I added this project as a maven dependency "B" in pom.xml of another project.
The issue is that the transitive dependency "A" is pulled with version 2.10.3.
- I executed the command: mvn dependency:tree with -Dincludes, and got that dependency "A" comes only from dependency "B".
- This issue is reproduced for a lot of transitive dependencies that comes from "B".
So my question is: why maven pull the wrong version of dependency "A", and how can I solve it without exlusions and dependencyManagement solution?
Maven version is 3.3.3, Maven-Dependency-Plugin version is 2.10