Find Maven repository where a dependency is stored

廉价感情. 提交于 2019-12-18 16:49:47

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/8334004/find-maven-repository-where-a-dependency-is-stored

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!