Skip to content
𝓒π“ͺ𝓼𝓽𝓻𝓲𝓳π“ͺ

Share the knowledge

𝓒π“ͺ𝓼𝓽𝓻𝓲𝓳π“ͺ

Share the knowledge

How to resolve maven dependency conflicts

Posted on July 8, 2014September 25, 2021 By sastrija

When dealing with lots of maven dependencies we normally ends up with conflicts. This can be due to different versions of same library in classpath. In this case we have to manually identify the exact maven dependencies with which this library is added.

Maven provides an option to list all the libraries added to classpath due to the dependencies in maven pom file. We can get this by running below command from the path where the pom.xml is available.

mvn dependency:tree -Dverbose

If we are trying to find any specific library we can execute below command:

mvn dependency:tree -Dverbose -Dincludes=commons-collections

Related

Uncategorized

Post navigation

Previous post
Next post
©2025 𝓒π“ͺ𝓼𝓽𝓻𝓲𝓳π“ͺ | WordPress Theme by SuperbThemes