Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find Maven repository where a dependency is stored

I'm working on a project with several corporate remote Maven repositories, each hosting many dozens of dependencies. The entire project uses hundreds of dependencies and I need a way to quickly determine which remote repository a dependency is stored on.

Does Maven provide an easy way to do this or do I need to search through each repository's dependency listing myself?

like image 217
Ian Durkan Avatar asked Nov 30 '11 22:11

Ian Durkan


1 Answers

The project dependencies report has the information you want. You can quickly generate just this report using

mvn project-info-reports:dependencies

and open the target/site/dependencies.html file. Look at the last section in this report (dependency repository locations) for the info you want.

A sample of this report is here.

like image 179
prunge Avatar answered Sep 20 '22 19:09

prunge