简体   繁体   English

Eclipse中多模块Maven项目中的Java项目依赖关系树

[英]Java projects dependencies tree in multimodule maven project in Eclipse

How could I build the tree (graph) of projects being used by current java project? 如何构建当前Java项目正在使用的项目树(图)?
How could I build the tree (graph) of projects that use (depend on) current java project? 我如何构建使用(取决于)当前Java项目的项目树(图)?
It is essential to build the tree, not a flat dependencies list. 构建树而不是平坦的依赖关系列表至关重要。
And I don't want to have other maven dependencies in that tree to have clear project dependencies report. 而且我不想在该树中具有其他Maven依赖项来获得清晰的项目依赖项报告。

You can actually use existing commands in eclipse as shown in the below picture: 您实际上可以在Eclipse中使用现有命令,如下图所示: 在此处输入图片说明

Open plugin.xml and you see several tabs like shown in pic : Overview , Dependencies ..... 打开plugin.xml,您会看到如图所示的几个选项卡: OverviewDependencies .....

On the Dependencies tab, there is a Dependency Analysis section in which there are two commands that serves your purpose. 在“ Dependencies选项卡上,有一个“ Dependency Analysis部分,其中有两个命令可以满足您的需求。

The Show the plugin-dependency hierarchy command list the plugins that your plugin depends on. Show the plugin-dependency hierarchy命令列出了插件所依赖的插件。

The Show dependent plug-ins and fragments command lists the plugins that depend on your plugin. Show dependent plug-ins and fragments命令列出了依赖于您插件的插件。

They are shown in a tree format. 它们以tree格式显示。

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

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