Author: mbenson
Date: Wed Feb 19 21:41:43 2014
New Revision: 1569933

URL: http://svn.apache.org/r1569933
Log:
use enforcer plugin to require Maven 3

Modified:
    commons/proper/weaver/trunk/pom.xml

Modified: commons/proper/weaver/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/weaver/trunk/pom.xml?rev=1569933&r1=1569932&r2=1569933&view=diff
==============================================================================
--- commons/proper/weaver/trunk/pom.xml (original)
+++ commons/proper/weaver/trunk/pom.xml Wed Feb 19 21:41:43 2014
@@ -74,10 +74,6 @@ under the License.
     </developer>
   </developers>
 
-  <prerequisites>
-    <maven>3.0</maven>
-  </prerequisites>
-
   <scm>
     
<connection>scm:svn:http://svn.apache.org/repos/asf/commons/proper/weaver/trunk/</connection>
     
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/commons/proper/weaver/trunk/</developerConnection>
@@ -271,6 +267,28 @@ under the License.
       </plugins>
     </pluginManagement>
     <plugins>
+    <plugin>
+      <inherited>true</inherited>
+      <groupId>org.apache.maven.plugins</groupId>
+      <artifactId>maven-enforcer-plugin</artifactId>
+      <version>1.3.1</version>
+        <executions>
+          <execution>
+            <id>enforce-maven-3</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+            <configuration>
+              <rules>
+                <requireMavenVersion>
+                  <version>3.0.0</version>
+                </requireMavenVersion>                
+              </rules>
+              <fail>true</fail>
+            </configuration>
+          </execution>
+       </executions>
+     </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jar-plugin</artifactId>


Reply via email to