check pom dependency tree for the same packages of different versions .
I had this problem with itext-2.1.7 , including the old bouncycastle bcpkix , which was later included version in another place.
Use this pattern :
<dependency> package X <exclusions> <exclusion> old package Y </exclusion> </exclusions> </dependency> <dependency> latest package Y </dependency>
Update. To check the details of the package_Y dependency tree, you can use mvn dependency:tree -Dverbose -Dincludes=package_Y . For more information, check the maven documentation for resolving dependency tree problems. In addition, Eclipse has a pretty good view of the dependency tree.
andrej Mar 22 '13 at 10:27 2013-03-22 10:27
source share