Repository: maven Updated Branches: refs/heads/master 8a51f9e51 -> bcacea2cf
[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. Project: http://git-wip-us.apache.org/repos/asf/maven/repo Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/bcacea2c Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/bcacea2c Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/bcacea2c Branch: refs/heads/master Commit: bcacea2cfb9702658914a40a95251f2d8335b3f5 Parents: 8a51f9e Author: Karl Heinz Marbaise <[email protected]> Authored: Wed Oct 7 17:28:31 2015 +0200 Committer: Karl Heinz Marbaise <[email protected]> Committed: Wed Oct 7 17:30:04 2015 +0200 ---------------------------------------------------------------------- pom.xml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/maven/blob/bcacea2c/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 75cb34e..0058334 100644 --- a/pom.xml +++ b/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>
