【发布时间】:2014-03-02 10:17:31
【问题描述】:
我正在使用 org.apache.maven.shared.dependency.graph.DependencyGraphBuilder.buildDependencyGraph() 和生成的 org.apache.maven.shared.dependency.graph.DependencyNode 在插件中遍历我的主 pom 的依赖关系图
但是,一旦我到达具有特定 groupId 的依赖项,我需要访问在其 pom.xml 中声明的 maven 属性。如何通过 Artifact 或 DependencyNode 对象访问 pom?
【问题讨论】:
-
你是在写插件还是想达到什么目的?
-
是的。这就是为什么它有 maven-plugin 标签
-
我编辑了问题以明确说明
标签: maven maven-plugin