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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -