Somewhat similar question is posted here. But no answers there.
I have multi-module maven project
when I run mvn dependency:tree
,
I see the following
[INFO] ------------------------------------------------------------------------
[INFO] Building Service 2.2.22-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.3.2:compile
[INFO] | \- commons-codec:commons-codec:jar:1.6:compile
[INFO] ------------------------------------------------------------------------
[INFO] Building common 2.2.22-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] +- com.mycompany.project:jar:2.1.115:compile
+- commons-httpclient:commons-httpclient:jar:3.1:compile
[INFO] | | \- commons-codec:commons-codec:jar:1.2:compile
No other configuration to exclude any library is done in pom.xml.
In my final war/WEB-INF/lib
,
I see commons-codec-1.6.jar
, commons-httpclient-3.1.jar
, httpclient-4.3.2.jar
.
But I do not see commons-codec-1.2.jar
. why is that?
Instead of including both commons-codec jars, which can lead to conflicts and issues, Maven's dependency mediation selected
commons-codec-1.6.jar