java - How to find which dependency current jar file is referred? -
in eclipse, expand current project in project explorer,
click java resources
-> libraries
-> maven dependencies
and found there 2 jar files in different version, i.e.:
commons-lang-2.1.jar , commons-lang3-3.1.jar
but pom.xml
, cannot tell commons-lang-2.1.jar
come must required 1 of artifacts. trouble check pom
file each artifact...
i heard of dependency-tree
can work similar don't know how make work under situation. hint appreciated.
mvn dependency:tree
look 2 instances of commons-lang , see requires them.
that said, 2 versions aren't compatible, , can live in same application:
http://commons.apache.org/proper/commons-lang/article3_0.html
see answer of mine regarding deciphering tree output. nutshell indented libraries dependencies of non-indented library above it: dependency tree.
Comments
Post a Comment