Perform "mvn dependency:tree" *within Eclipse*

eclipse, java, maven

Solution

Open the pom.xml you want to learn about. This is a multipane editor. One of the panes shows the dependencies and how they are resolved.

Problem

I have a Maven project which I program within Eclipse. In Eclipse, everything works, but when building it with Maven, I get a NoSuchMethodError on a call to a third-party jar. So I suspect that Eclipse uses a different version of that jar when compiling. I can see which version of what Maven uses, but I'd like to see which version of what Eclipse uses. I don't see how to perform a "mvn dependency:tree" from within Eclipse, such that I would see the result form "Eclipse's point-of-view". The project was created using "File/Import.../Existing Maven Project". I am using "Eclipse IDE for Java Developers", Version: "Kepler Service Release 1" To perform any Maven command from Eclipse, I just found this SO question

Original source

Related problems