查找存储依赖关系的Maven存储库 [英] Find Maven repository where a dependency is stored
问题描述
Maven是否提供了一个简单的方法来做到这一点,或者我需要搜索每个存储库的依赖关系列表?
项目依赖关系报告具有您想要的信息。您可以使用
mvn project-info-reports:dependencies
并打开target / site / dependencies.html文件。查看本报告的最后一节(依赖关系库位置)获取所需的信息。
此报告的示例为这里。
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?
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.
这篇关于查找存储依赖关系的Maven存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!