Maven - see Dependency Tree without construction project

I want to see the project dependency tree without actually loading these dependencies. I have a project whose collection failed because there is some dependency that is missing in the central repo, however this is not a direct dependency, and I do not know which of my dependencies this refers to.
Now when I run the team mvn dependency:tree, it builds the project and therefore fails.

One way to do this is to keep the dummy jar in a local repo with the same name. It will not try to load the dependency and generate the whole tree. However, is there any other way to do this?

+4
source share
2 answers

If you use eclipse, there is a "Maven POM editor" that displays not only the maven XML file, but also the appearance of the dependency hierarchy. It does not need a working assembly, just the right POM XML file.

It should be installed when you install the eclipse m2e plugin . Update site http://download.eclipse.org/technology/m2e/releases .

+1
source

Maybe Maven dependency:analyze-only

mvn dependency:analyze-only

, : ; ; . , , - ​​ : , .

: :

mvn dependency:resolve
+1

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


All Articles