Ian Durkan
Ian Durkan

Reputation: 1232

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?

Upvotes: 8

Views: 6036

Answers (1)

prunge
prunge

Reputation: 23248

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.

Upvotes: 14

Related Questions