I am facing some weired behavior with maven transitive dependencies for multi module project.
I have 3 modules in all three modules httpclient is transitive dependency coming from some
common jar.This common jar is used as parent across the platform.If we want to change version ,group id ,artifact id etc then we will change in common jar so that all modules referenced from this common jar will have latest changes.If we do dependency tree for httpclient on common jar also it is showing 4.5.3 dependency only.
mvn dependency:tree -Dverbose -Dincludes=org.apache.httpcomponents:httpclient
Now my issue is module 1 and module 2 is downloading latest httpclient
jar[4.5.3] but module 3 is downloading older httpclient [4.5.2] jar
from common jar.Since the 4.5.3 and 4.5.2 is having common artifact
and group id how can we figure out which jar from common is causing
4.5.2 to download.
I have posted another question in followng link which can be a reference link.
All modules have common transitive parent.
Any one came across this kind of issue can help me to figure out.