Is effective-pom a merge between super pom and application POM

前端 未结 2 1984
情歌与酒
情歌与酒 2020-12-05 15:28

I have tried to generate effective pom on sample application using mvn help:effective-pom command. http://books.sonatype.com/mvnref-book/reference/pom-relationships-sect-po

相关标签:
2条回答
  • 2020-12-05 15:51

    Effective POM is composed of Super POM + Application POM(s) + settings.xml contents + plugins bound to the lifecycle by default based on the packaging type chosen (thus, based on one element in the Application POM).

    You asked about maven-jar-plugin and maven-compiler-plugin. These are bound to the lifecycle by default because your application POM specifies jar packaging.

    You can see the default bindings in $YOUR_REPO_LOCATION\org\apache\maven\maven-core\3.0.x\maven-core-3.0.x.jar\META-INF\plexus\components.xml or in the documentation.

    0 讨论(0)
  • 2020-12-05 15:55

    If I remember correctly, effective POM means the actual POM to be used.

    Incorporating settings in super POM is part of it. It also includes a lot other things, like applying parent POM, applying profiles, substituting properties, and etc.

    I think it will be better if you can give some snippet of the settings you thought that comes from no where, so that we can identify where do they come from.

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