You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2014/10/30 18:35:51 UTC
git commit: HBASE-12381 use the Maven Enforcer Plugin to check maven
and java versions.
Repository: hbase
Updated Branches:
refs/heads/master 87939889b -> 075fd3032
HBASE-12381 use the Maven Enforcer Plugin to check maven and java versions.
Signed-off-by: stack <st...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/075fd303
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/075fd303
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/075fd303
Branch: refs/heads/master
Commit: 075fd3032135c55a6874a6f0c091e558540609d0
Parents: 8793988
Author: Sean Busbey <bu...@apache.org>
Authored: Thu Oct 30 11:28:35 2014 -0500
Committer: stack <st...@apache.org>
Committed: Thu Oct 30 10:35:40 2014 -0700
----------------------------------------------------------------------
pom.xml | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/075fd303/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 92e28ca..a025cd2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -704,6 +704,43 @@
</plugins>
</pluginManagement>
<plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <!-- version set by parent -->
+ <configuration>
+ <rules>
+ <!-- The earliest maven version we verify builds for via ASF Jenkins -->
+ <requireMavenVersion>
+ <version>[${maven.min.version},)</version>
+ <message>Maven is out of date.
+ HBase requires at least version ${maven.min.version} of Maven to properly build from source.
+ You appear to be using an older version. You can use either "mvn -version" or
+ "mvn enforcer:display-info" to verify what version is active.
+ See the reference guide on building for more information: http://hbase.apache.org/book.html#build
+ </message>
+ </requireMavenVersion>
+ <!-- The earliest JVM version we verify builds for via ASF Jenkins -->
+ <requireJavaVersion>
+ <version>[${java.min.version},)</version>
+ <message>Java is out of date.
+ HBase requirs at least version ${java.min.version} of the JDK to properly build from source.
+ You appear to be using an older version. You can use either "mvn -version" or
+ "mvn enforcer:display-info" to verify what version is active.
+ See the reference guide on building for more information: http://hbase.apache.org/book.html#build
+ </message>
+ </requireJavaVersion>
+ </rules>
+ </configuration>
+ <executions>
+ <execution>
+ <id>enforce</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
<!-- parent-module only plugins -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
@@ -945,6 +982,9 @@
</maven.build.timestamp.format>
<buildDate>${maven.build.timestamp}</buildDate>
<compileSource>1.7</compileSource>
+ <!-- Build dependencies -->
+ <maven.min.version>3.0.3</maven.min.version>
+ <java.min.version>${compileSource}</java.min.version>
<!-- Dependencies -->
<hadoop-two.version>2.5.1</hadoop-two.version>
<hadoop-three.version>3.0.0-SNAPSHOT</hadoop-three.version>