Where is super pom for maven 3?

前端 未结 4 1805
死守一世寂寞
死守一世寂寞 2020-12-01 04:33

For maven 2 it used to be in

M2_HOME/lib/maven-2.2.1-uber.jar:org/apache/maven/project/pom-4.0.0.xml

But 3.0.x does not have a single jar.

相关标签:
4条回答
  • 2020-12-01 04:41

    As for maven 3.5.4 in mac, it's located in

    $MAVEN_HOME/lib/maven-model-builder-3.5.4.jar!/org/apache/maven/model/pom-4.0.0.xml
    

    But you have to unzip the maven-model-builder-3.5.4.jar first, where the super pom hides.

    0 讨论(0)
  • 2020-12-01 04:47

    They moved it (without documenting it as usual) to

    lib/maven-model-builder-3.0.3.jar:org/apache/maven/model/pom-4.0.0.xml
    
    0 讨论(0)
  • 2020-12-01 04:58

    For Maven 3.6.1 it's available at https://maven.apache.org/ref/3.6.1/maven-model-builder/super-pom.html

    For any other version just edit the URL.

    0 讨论(0)
  • 2020-12-01 05:06

    It's documented in Sonatype's Maven reference book, which for some reason doesn't turn up easily in Google results: http://books.sonatype.com/mvnref-book/reference/index.html

    0 讨论(0)
提交回复
热议问题