简体   繁体   English

所有项目的Maven依赖关系直方图(使用频率)

[英]Histrogram of maven dependencies over all projects (What is used how often)

Is there a way to generate somehow a Histogram of Maven Dependencies? 有没有办法以某种方式生成Maven依赖关系直方图? (number of usages over the library) (整个库的使用次数)

I would like to know for all of our projects (not necessary connected in any terms): 我想知道我们所有的项目(在任何情况下都不需要连接):

  • What libraries/dependencies are used 使用哪些库/依赖项
  • In what version they are used 它们以什么版本使用
  • Form how many modules/projects they are used 形成使用了多少个模块/项目

Is there a way to extract this information with maven (or any other tool) form the POMs? 有没有办法使用Maven(或任何其他工具)从POM提取此信息?
Do you have suggestions how to collect this info over many projects? 您对如何在许多项目中收集此信息有建议吗?

You can do that with a command: 您可以使用以下命令执行此操作:

mvn dependency:tree -Dverbose

The -Dverbose option will show all dependencies, even the ones removed. -Dverbose选项将显示所有依赖项,甚至包括已删除的依赖项。

Read here for more info 在这里阅读更多信息

IntelliJ Idea IntelliJ的想法

In IntelliJ Idea, open pom.xml file, right-click anywhere and select Diagrams -> Show dependencies... : 在IntelliJ Idea中,打开pom.xml文件,右键单击任意位置,然后选择Diagrams > Show dependencies...

IntelliJ的想法

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM