mirror of https://github.com/apache/maven.git
[MNG-5905] Maven build does not work with Maven 2.2.1
Added maven-enforcer rule to check the minimum Maven version to be built with.
This commit is contained in:
parent
8a51f9e512
commit
bcacea2cfb
25
pom.xml
25
pom.xml
|
@ -42,6 +42,7 @@
|
|||
<inceptionYear>2001</inceptionYear>
|
||||
|
||||
<properties>
|
||||
<maven.version>3.0.5</maven.version>
|
||||
<maven.compiler.source>1.7</maven.compiler.source>
|
||||
<maven.compiler.target>1.7</maven.compiler.target>
|
||||
<classWorldsVersion>2.5.2</classWorldsVersion>
|
||||
|
@ -142,8 +143,11 @@
|
|||
</contributor>
|
||||
</contributors>
|
||||
|
||||
<!-- This marked as deprecated for Maven 3.X. This is checked by maven-enforcer-plugin -->
|
||||
<!-- http://jira.codehaus.org/browse/MNG-4840 -->
|
||||
<!-- http://jira.codehaus.org/browse/MNG-5297 -->
|
||||
<prerequisites>
|
||||
<maven>2.2.1</maven>
|
||||
<maven>${maven.version}</maven>
|
||||
</prerequisites>
|
||||
|
||||
<!--bootstrap-start-comment-->
|
||||
|
@ -559,6 +563,25 @@
|
|||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>enforce-maven</id>
|
||||
<goals>
|
||||
<goal>enforce</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<rules>
|
||||
<requireMavenVersion>
|
||||
<version>${maven.version}</version>
|
||||
</requireMavenVersion>
|
||||
</rules>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
|
Loading…
Reference in New Issue