You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mnemonic.apache.org by ga...@apache.org on 2019/03/25 00:10:46 UTC

[mnemonic] branch master updated: MNEMONIC-521: Fix Maven build warnings related to usage of prerequisites

This is an automated email from the ASF dual-hosted git repository.

garyw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mnemonic.git


The following commit(s) were added to refs/heads/master by this push:
     new d053920  MNEMONIC-521: Fix Maven build warnings related to usage of prerequisites
d053920 is described below

commit d053920acd445456ce3e67481e4bd4de042da068
Author: Kevin Ratnasekera <dj...@yahoo.com>
AuthorDate: Mon Mar 18 11:40:43 2019 +0530

    MNEMONIC-521: Fix Maven build warnings related to usage of prerequisites
---
 pom.xml | 25 +++++++++++++++++++++----
 1 file changed, 21 insertions(+), 4 deletions(-)

diff --git a/pom.xml b/pom.xml
index 69d90a4..316881e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -68,10 +68,6 @@
     </mailingList>
   </mailingLists>
 
-  <prerequisites>
-    <maven>${maven.min-version}</maven>
-  </prerequisites>
-
   <scm>
     <url>https://gitbox.apache.org/repos/asf/mnemonic.git</url>
     <connection>scm:git:https://gitbox.apache.org/repos/asf/mnemonic.git</connection>
@@ -101,6 +97,7 @@
     <maven.compiler.source>${java.version}</maven.compiler.source>
     <maven.compiler.target>${java.version}</maven.compiler.target>
     <maven.min-version>3.2.1</maven.min-version>
+    <enforcer.skip>false</enforcer.skip>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
     <skipTests>true</skipTests>
@@ -199,6 +196,26 @@
   <build>
     <plugins>
       <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <version>1.4.1</version>
+        <executions>
+          <execution>
+            <id>enforce-maven-version</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+            <configuration>
+              <rules>
+                <requireMavenVersion>
+                  <version>[${maven.min-version},)</version>
+                </requireMavenVersion>
+              </rules>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
         <groupId>org.codehaus.mojo</groupId>
         <artifactId>license-maven-plugin</artifactId>
         <version>1.13</version>