diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-11-08 10:52:26 +0100 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-11-08 10:52:26 +0100 |
commit | 38531525712b84c8ccfb81a9d7e0710c81e276a1 (patch) | |
tree | f573300454de1a165fa9afd74e51196a40f36a82 /pom.xml | |
parent | d570ad58471ae256c6a2d981f1efb395436cdf4e (diff) |
Enable Maven Enforcer Plugin, require Maven >= 3.6.2.
Change-Id: I06d8be4e510125edf6c32eaf22d75ec1221debd4
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 38 |
1 files changed, 38 insertions, 0 deletions
@@ -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> |