Repository: incubator-rya
Updated Branches:
  refs/heads/develop bf56114dc -> 2a6f73088


RYA-5 Configure maven-enforcer-plugin to require a minimum verison of 3.0.4.


Project: http://git-wip-us.apache.org/repos/asf/incubator-rya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-rya/commit/2a6f7308
Tree: http://git-wip-us.apache.org/repos/asf/incubator-rya/tree/2a6f7308
Diff: http://git-wip-us.apache.org/repos/asf/incubator-rya/diff/2a6f7308

Branch: refs/heads/develop
Commit: 2a6f730880f340c9f979e1905d8f64963dda5029
Parents: bf56114
Author: Josh Elser <[email protected]>
Authored: Sat Nov 21 17:37:39 2015 -0500
Committer: Josh Elser <[email protected]>
Committed: Sat Nov 21 17:37:39 2015 -0500

----------------------------------------------------------------------
 pom.xml | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-rya/blob/2a6f7308/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 53b18df..70cfb60 100644
--- a/pom.xml
+++ b/pom.xml
@@ -13,6 +13,9 @@
         <url>http://www.apache.org/licenses/LICENSE-2.0</url>
       </license>
     </licenses>
+    <prerequisites>
+      <maven>${maven.min-version}</maven>
+    </prerequisites>
     <modules>
         <module>common</module>
         <module>iterators</module>
@@ -36,6 +39,8 @@
         <junit.version>4.8.1</junit.version>
         <karaf.version>2.2.4</karaf.version>
         <mango.version>1.2.0</mango.version>
+        <!-- the maven-release-plugin makes this recommendation, due to plugin 
bugs -->
+        <maven.min-version>3.0.4</maven.min-version>
         <openrdf.sesame.version>2.7.6</openrdf.sesame.version>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
@@ -325,6 +330,18 @@
                 </plugin>
                 <plugin>
                     <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-enforcer-plugin</artifactId>
+                    <version>1.3.1</version>
+                    <configuration>
+                        <rules>
+                            <requireMavenVersion>
+                                <version>[${maven.min-version},)</version>
+                            </requireMavenVersion>
+                        </rules>
+                    </configuration>
+                </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
                     <artifactId>maven-release-plugin</artifactId>
                     <version>2.5</version>
                     <configuration>
@@ -433,6 +450,18 @@
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-enforcer-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>enforce-mvn</id>
+                        <goals>
+                            <goal>enforce</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-surefire-plugin</artifactId>
                 <configuration>
                     <excludes>

Reply via email to