hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject git commit: HBASE-12381 use the Maven Enforcer Plugin to check maven and java versions.
Date Thu, 30 Oct 2014 17:38:27 GMT
Repository: hbase
Updated Branches:
  refs/heads/0.98 68eb74b23 -> 5874ae0ad


HBASE-12381 use the Maven Enforcer Plugin to check maven and java versions.

Signed-off-by: stack <stack@apache.org>

Conflicts:
	pom.xml


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/5874ae0a
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/5874ae0a
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/5874ae0a

Branch: refs/heads/0.98
Commit: 5874ae0add074b92827577173c9354a9fee671a6
Parents: 68eb74b
Author: Sean Busbey <busbey@apache.org>
Authored: Thu Oct 30 11:28:35 2014 -0500
Committer: stack <stack@apache.org>
Committed: Thu Oct 30 10:38:18 2014 -0700

----------------------------------------------------------------------
 pom.xml | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/5874ae0a/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index ba5c6e4..67063cd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -725,6 +725,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>
@@ -944,6 +981,9 @@
     </maven.build.timestamp.format>
     <buildDate>${maven.build.timestamp}</buildDate>
     <compileSource>1.6</compileSource>
+    <!-- Build dependencies -->
+    <maven.min.version>3.0.3</maven.min.version>
+    <java.min.version>${compileSource}</java.min.version>
     <!-- Dependencies -->
     <hadoop-two.version>2.2.0</hadoop-two.version>
     <hadoop-one.version>1.2.1</hadoop-one.version>


Mime
View raw message