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

Overrides the existing parent pom enforcer check and restricts the version range. Updates to current plugin that works across newer versions.
This commit is contained in:
Robbie Gemmell 2022-02-16 11:01:09 +00:00
parent 2a9161116f
commit e84025c267
1 changed files with 27 additions and 0 deletions

27
pom.xml
View File

@ -146,6 +146,7 @@
<maven-javadoc-plugin-version>3.3.1</maven-javadoc-plugin-version>
<maven-install-plugin-version>2.5.2</maven-install-plugin-version>
<maven-shade-plugin-version>3.2.4</maven-shade-plugin-version>
<maven-enforcer-plugin-version>3.0.0</maven-enforcer-plugin-version>
<findbugs-maven-plugin-version>3.0.1</findbugs-maven-plugin-version>
<javacc-maven-plugin-version>2.6</javacc-maven-plugin-version>
<cobertura-maven-plugin-version>2.5.2</cobertura-maven-plugin-version>
@ -1174,6 +1175,11 @@
<argLine>-Xmx512m</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>${maven-enforcer-plugin-version}</version>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
@ -1324,6 +1330,7 @@
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@ -1479,6 +1486,26 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-java-version</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<version>[1.8, 9)</version>
<message>You must use Java 8 to build.</message>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<reporting>