I have an app that I build with maven.
First, I run mvn clean
.
Then, after I build it, I'm finding that I get 2 copies of the jackson-databind
jar:
ls target/ROOT/WEB-INF/lib | grep jackson
jackson-annotations-2.8.9.jar
jackson-core-2.8.9.jar
jackson-databind-2.4.4.jar
jackson-databind-2.8.9.jar
However, when I run
mvn dependency:tree
I only see reference to
com.fasterxml.jackson.core:jackson-databind:jar:2.8.9:compile
Even if I run mvn dependency:tree -Dverbose=true
, there's no sign of 2.4.4 in the tree
What gives? Am I misunderstanding the report, because we're clearly pulling in 2.4.4 for some reason?
Put another way (to keep this less broad), how can maven be pulling in a dependency that isn't listed in the dependency tree?