查找存储依赖关系的Maven存储库 [英] Find Maven repository where a dependency is stored

查看:176
本文介绍了查找存储依赖关系的Maven存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在与几个企业远程Maven仓库进行一个项目,每个仓库都有许多依赖关系。整个项目使用数百个依赖关系,我需要一种方法来快速确定在上存储依赖关系的远程存储库。



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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆