tools:require-maven-version

Forces the build to fail if the version of Maven is not compatible.

Mojo Attributes:

  • Requires a Maven 2.0 project to execute.
  • Automatically executes within the lifecycle phase: validate

Required Parameters

Name Type Description
version String Specify the required version of Maven (2.0.4, 2.0.4). Can specify a suffix of '+' to allow any version equal to or newer or '*' to allow versions in the same group. For example, version=2.0+ would be allowed with any Maven 2.1.x, version=2.0* would allow any Maven 2.0.x, but not Maven 2.1.x.

Optional Parameters

Name Type Description
skip boolean Flag to skip the version check. Default value is false.

Parameter Details

skip

Flag to skip the version check.

  • Type: boolean
  • Required: No
  • Expression: ${requiremavenversion.skip}
  • Default: false

version Specify the required version of Maven (2.0.4, 2.0.4). Can specify a suffix of '+' to allow any version equal to or newer or '*' to allow versions in the same group. For example, version=2.0+ would be allowed with any Maven 2.1.x, version=2.0* would allow any Maven 2.0.x, but not Maven 2.1.x.
  • Type: java.lang.String
  • Required: Yes