use maven enforcer to check maven version (#10977)

* removes a warning about prerequisites only being allowed for plugins
* update maven enforcer plugin to the latest version (3.0.0-M3)
This commit is contained in:
Xavier Léauté 2021-03-11 07:30:10 -08:00 committed by GitHub
parent b808fd2ef9
commit 7a68cd8b86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -30,10 +30,6 @@
<version>0.22.0-SNAPSHOT</version>
</parent>
<prerequisites>
<maven>3.0</maven>
</prerequisites>
<dependencies>
<dependency>
<groupId>org.openjdk.jmh</groupId>

View File

@ -1475,7 +1475,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4.1</version>
<version>3.0.0-M3</version>
<executions>
<execution>
<id>default-cli</id>
@ -1484,6 +1484,9 @@
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>3.0.0</version>
</requireMavenVersion>
<requireJavaVersion>
<version>1.8.0</version>
</requireJavaVersion>