AMQ-8489: make the build fail quickly and obviously if not run on Java 11+, which is required.

Overrides the existing parent pom enforcer check. Updates to current plugin version.
This commit is contained in:
Robbie Gemmell 2022-02-16 11:31:25 +00:00
parent 6681cde88c
commit a4b396db91
1 changed files with 16 additions and 1 deletions

17
pom.xml
View File

@ -130,7 +130,7 @@
<maven-assembly-plugin-version>3.3.0</maven-assembly-plugin-version>
<maven-release-plugin-version>2.5.3</maven-release-plugin-version>
<maven-eclipse-plugin-version>2.10</maven-eclipse-plugin-version>
<maven-enforcer-plugin-version>3.0.0-M3</maven-enforcer-plugin-version>
<maven-enforcer-plugin-version>3.0.0</maven-enforcer-plugin-version>
<maven-war-plugin-version>3.2.2</maven-war-plugin-version>
<maven-compiler-plugin-version>3.9.0</maven-compiler-plugin-version>
<maven-jar-plugin-version>3.2.2</maven-jar-plugin-version>
@ -1259,6 +1259,7 @@
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@ -1289,6 +1290,20 @@
</rules>
</configuration>
</execution>
<execution>
<id>enforce-java-version</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<version>[11,)</version>
<message>You must use Java 11+ to build.</message>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>