Run "mvn dependency: tree" * in Eclipse *

I have a Maven project that I am programming in Eclipse. Everything works in Eclipse, but when I create it with Maven, I get a NoSuchMethodError when I call a third-party bank. Therefore, I suspect that when compiling Eclipse uses a different version of this jar. I can see which version Maven uses, but I would like to see which version Eclipse uses. I do not see how to execute "mvn dependency: tree" from Eclipse to see the result form of "Eclipse point-of-view".

The project was created using File / Import ... / Existing Maven Project.

I am using the "Eclipse IDE for Java Developers" version: "Kepler Service Release 1"

To execute any Maven command from Eclipse, I just found this SO question

+4
source share
2 answers

Open the pom.xml that you want to learn about. This is a multilingual editor. One of the panels displays dependencies and ways to resolve them.

+6
source

Make sure you install the m2e plugin (formerly called m2eclipse). If Eclipse opens pom.xml in plain text, click pom.xml and right-click for the pop-up menu. You will see “Open With” → “Maven POM Editor”. In the Maven Pom editor, you can check these dependencies in “dependencies” or “dependency hierarchies”.

+2

Source: https://habr.com/ru/post/1528254/


All Articles