Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find the artifacts that depend on another artifact?

We are using Maven to build our projects and Nexus as repository manager.

Is there a way to know where an artifact is a dependency of another artifact?

For example, we want to know which of the artifacts in our Release repository have a dependency on commons-io 1.2, or version x.y of our framework2, or ...

like image 986
Koohoolinn Avatar asked Jan 13 '11 14:01

Koohoolinn


2 Answers

mvn dependency:tree should help you get this info.

like image 71
Raghuram Avatar answered Nov 16 '22 02:11

Raghuram


Have you looked at the Maven Site plugin in conjunction with the dependencies and dependencies-convergence report from the Maven Project Info Reports plugin?

This will generate an html report that shows all the artifacts that the project uses and what other artifacts that are dependent on that artifact.

like image 27
jgifford25 Avatar answered Nov 16 '22 02:11

jgifford25