Repository: camel Updated Branches: refs/heads/master 363b34a9b -> 91a052ce5
Add maven enforcer to ensure a supported mvn version are used. Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/91a052ce Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/91a052ce Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/91a052ce Branch: refs/heads/master Commit: 91a052ce56b6d9dc9caf9515dc8e65c52fff333c Parents: 363b34a Author: Claus Ibsen <[email protected]> Authored: Fri Feb 20 10:58:09 2015 +0100 Committer: Claus Ibsen <[email protected]> Committed: Fri Feb 20 10:58:09 2015 +0100 ---------------------------------------------------------------------- pom.xml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/91a052ce/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index eb08215..49c4ffa 100755 --- a/pom.xml +++ b/pom.xml @@ -38,6 +38,9 @@ </prerequisites> <properties> + <!-- enforce to require using at least this maven version --> + <maven-enforcer-require-maven-version>3.1.1</maven-enforcer-require-maven-version> + <!-- unify the encoding for all the modules --> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> @@ -136,6 +139,31 @@ <build> <defaultGoal>install</defaultGoal> + + <!-- enforce maven version --> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-enforcer-plugin</artifactId> + <version>1.4</version> + <executions> + <execution> + <id>enforce-maven</id> + <goals> + <goal>enforce</goal> + </goals> + <configuration> + <rules> + <requireMavenVersion> + <version>${maven-enforcer-require-maven-version}</version> + </requireMavenVersion> + </rules> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + <pluginManagement> <plugins> <plugin>
