How do I obtain a fully resolved Model of a pom file?

前端 未结 6 488
时光取名叫无心
时光取名叫无心 2021-01-30 11:40

How do I obtain a fully resolved Model of a pom file?

This is basically a rephrasing of How can i programmaticaly build the effective model of a pom file?

I\'m b

6条回答
  •  温柔的废话
    2021-01-30 12:32

    the maven help plugin does something similar when "mvn help:effective-pom" is executed.

    see http://svn.apache.org/viewvc/maven/plugins/tags/maven-help-plugin-2.1.1/src/main/java/org/apache/maven/plugins/help/EffectivePomMojo.java?view=markup for the sources.

    I think this will not show the transitive depedencies.

    The mvn dependency:tree goal does that: http://svn.apache.org/viewvc/maven/plugins/tags/maven-dependency-plugin-2.4/src/main/java/org/apache/maven/plugin/dependency/TreeMojo.java?view=markup

    maybe you can create a mixture of both?

提交回复
热议问题