You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mb...@apache.org on 2014/02/19 22:41:44 UTC

svn commit: r1569933 - /commons/proper/weaver/trunk/pom.xml

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>



Re: svn commit: r1569933 - /commons/proper/weaver/trunk/pom.xml

Posted by Matt Benson <gu...@gmail.com>.
On Wed, Feb 19, 2014 at 4:00 PM, sebb <se...@gmail.com> wrote:

> On 19 February 2014 21:41,  <mb...@apache.org> wrote:
> > 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>
>
> What's wrong with the above method?
> It's much simpler than the replacement.
>

It's not inherited.

Matt

>
> >    <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>
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>

Re: svn commit: r1569933 - /commons/proper/weaver/trunk/pom.xml

Posted by sebb <se...@gmail.com>.
On 19 February 2014 21:41,  <mb...@apache.org> wrote:
> 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>

What's wrong with the above method?
It's much simpler than the replacement.

>    <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>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org