hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bus...@apache.org
Subject hbase git commit: HBASE-13344 - Add max Java version check for pom dependencies.
Date Thu, 28 May 2015 06:04:17 GMT
Repository: hbase
Updated Branches:
  refs/heads/master cd9c6de02 -> bb0d64b77


HBASE-13344 - Add max Java version check for pom dependencies.

Signed-off-by: Sean Busbey <busbey@apache.org>


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

Branch: refs/heads/master
Commit: bb0d64b77818bcad4589a5e6409fe9fad2e4a905
Parents: cd9c6de
Author: Matt Warhaftig <mwarhaftig@gmail.com>
Authored: Sun May 24 18:49:25 2015 -0400
Committer: Sean Busbey <busbey@cloudera.com>
Committed: Thu May 28 01:03:55 2015 -0500

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/bb0d64b7/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 0e95fb0..3e53403 100644
--- a/pom.xml
+++ b/pom.xml
@@ -804,6 +804,13 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-enforcer-plugin</artifactId>
+        <dependencies>
+          <dependency>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>extra-enforcer-rules</artifactId>
+            <version>${extra.enforcer.version}</version>
+          </dependency>
+        </dependencies>
         <!-- version set by parent -->
         <configuration>
           <rules>
@@ -827,6 +834,16 @@
   See the reference guide on building for more information: http://hbase.apache.org/book.html#build
               </message>
             </requireJavaVersion>
+            <enforceBytecodeVersion>
+              <maxJdkVersion>${compileSource}</maxJdkVersion>
+              <message>HBase has unsupported dependencies.
+  HBase requires that all dependencies be compiled with version ${compileSource} or earlier
+  of the JDK to properly build from source.  You appear to be using a newer dependency. You
can use
+  either "mvn -version" or "mvn enforcer:display-info" to verify what version is active.
+  Non-release builds can temporarily build with a newer JDK version by setting the
+  'compileSource' property (eg. mvn -DcompileSource=1.8 clean package).
+              </message>
+            </enforceBytecodeVersion>
           </rules>
         </configuration>
         <executions>
@@ -1220,6 +1237,7 @@
     </hbase-surefire.cygwin-argline>
     <hbase.skip-jacoco>true</hbase.skip-jacoco>
     <jacoco.version>0.6.2.201302030002</jacoco.version>
+    <extra.enforcer.version>1.0-beta-3</extra.enforcer.version>
   </properties>
   <!-- Sorted by groups of dependencies then groupId and artifactId -->
   <dependencyManagement>


Mime
View raw message