HBASE-13344 - Add max Java version check for pom dependencies.
Signed-off-by: Sean Busbey <busbey@apache.org>
This commit is contained in:
parent
279dd43570
commit
499c40697b
18
pom.xml
18
pom.xml
|
@ -775,6 +775,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>
|
||||
|
@ -798,6 +805,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>
|
||||
|
@ -1193,6 +1210,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>
|
||||
|
|
Loading…
Reference in New Issue