summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-11-08 10:52:26 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-11-08 10:52:26 +0100
commit38531525712b84c8ccfb81a9d7e0710c81e276a1 (patch)
treef573300454de1a165fa9afd74e51196a40f36a82
parentd570ad58471ae256c6a2d981f1efb395436cdf4e (diff)
Enable Maven Enforcer Plugin, require Maven >= 3.6.2.
Change-Id: I06d8be4e510125edf6c32eaf22d75ec1221debd4
-rw-r--r--pom.xml38
1 files changed, 38 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index a1d5cec..856fa4d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -16,8 +16,11 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+ <enforced.maven-version>3.6.2</enforced.maven-version>
+
<antrun-plugin.version>3.0.0</antrun-plugin.version>
<compiler-plugin.version>3.8.1</compiler-plugin.version>
+ <enforcer-plugin.version>3.0.0-M3</enforcer-plugin.version>
<processor-plugin.version>4.2</processor-plugin.version>
<quarkus.version>1.9.2.Final</quarkus.version>
<resources-plugin.version>3.2.0</resources-plugin.version>
@@ -256,6 +259,20 @@
<build>
+ <pluginManagement>
+ <plugins>
+
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>versions-maven-plugin</artifactId>
+ <configuration>
+ <generateBackupPoms>false</generateBackupPoms>
+ </configuration>
+ </plugin>
+
+ </plugins>
+ </pluginManagement>
+
<plugins>
<plugin>
@@ -375,6 +392,27 @@
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>${enforcer-plugin.version}</version>
+ <executions>
+ <execution>
+ <id>enforce-maven</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireMavenVersion>
+ <version>${enforced.maven-version}</version>
+ </requireMavenVersion>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
</plugins>
<resources>