m2Eclipse dependencyManagement 部分不显示图表
我不知道这是一个错误还是预期的功能,但是 m2Eclipse 的 POM 编辑器有一个很棒的图形表示(“依赖关系图”选项卡)和树(“依赖关系层次结构”选项卡)(如果依赖项都在依赖项部分)他们自己。但是,当您将它们移动到“dependencyManagement”节点(对于基于模块的项目有用)时,这些选项卡不再起作用。
有谁知道这是否是一个错误、预期的功能等?
编辑#1:依赖项管理部分中的依赖项未在父项中的依赖项管理部分之外声明。它们在子模块之间共享;为了保持一致性(我们正在建模的地方发布了一些标准)。
编辑#2:该工具在子模块级别工作。我指的是它在家长层面不起作用。
TIA
I don't know if this is a bug or intended functionality, but the POM editor for m2Eclipse has a wonderful graph representation ('Dependency Graph' tab) and tree ('Dependency Heirarchy' tab) if the dependencies are in the dependency section all by themselves. However, when you move them into the 'dependencyManagement' node (useful for module based projects) these tabs no longer work.
Does anyone know if this is a bug, intended functionality, etc?
EDIT #1: The dependencies in the dependency management section are NOT declared outside of the dependency management section in the parent. They are there to share amongst the child modules; to keep consistency (there was some standard posted somewhere that we're modeling this on).
EDIT #2: The tooling works at the child module level. I am referring to it not working at the parent level.
TIA
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的 POM 具有在
dependencyManagement
下声明的依赖项,它们仅按预期显示在 Dependency Graph 和 Dependency Hierarchy 选项卡中。例如,我有一个父 POM 具有:
子 POM 具有:
子 POM 可以正常工作:
您在
dependencyManagement
下移动的依赖项实际上也声明为依赖项吗?您能否显示一个简化的pom.xml
来说明问题?dependencyManagement
元素中声明的依赖项不是项目的dependency
(如果我在dependencyManagement
中声明foo
,我我仍然不依赖foo
)。如果父级未声明任何依赖项
,则不会显示任何内容。I have POMs with dependencies declared under
dependencyManagement
and they are just shown as expected in the Dependency Graph and Dependency Hierarchy tabs.For example, I have a parent POM with:
And a child POM with:
And the Dependency Graph of the child just works:
Are the dependencies you moved under
dependencyManagement
actually also declared as dependencies? Can you show a simplifiedpom.xml
illustrating the problem?Dependencies declared in the
dependencyManagement
element are notdependencies
of the project (if I declarefoo
in thedependencyManagement
, I'm still not depending onfoo
). If the parent doesn't declare anydependencies
, there is nothing to show.