enforcing maven 3 - when to use maven enforcer plugin? when to use pom prerequisites element?

后端 未结 2 969
旧巷少年郎
旧巷少年郎 2021-02-13 11:40

The two main approaches for enforcing maven 3 seem to be:

  • maven-enforcer-plugin, and
  • pom.xml element.

2条回答
  •  你的背包
    2021-02-13 12:24

    The Maven pom prerequisites approach may be more appropriate for smaller, simpler projects. This approach will be lighter weight as it will not require the maven-enforcer-plugin to be downloaded.

    The maven-enforcer-plugin approach may be more suitable if you have children projects that you wish to inherit the maven 3 requirement from the parent. pom prerequisites is not inherited by children projects.

提交回复
热议问题