HBASE-13344 Addendum - Move max Java version check to release.

Signed-off-by: Sean Busbey <busbey@apache.org>
This commit is contained in:
Matt Warhaftig 2015-05-31 11:17:23 -04:00 committed by Sean Busbey
parent 0e6102a68c
commit 9a4ae799c7
1 changed files with 18 additions and 10 deletions

28
pom.xml
View File

@ -834,16 +834,6 @@
See the reference guide on building for more information: http://hbase.apache.org/book.html#build See the reference guide on building for more information: http://hbase.apache.org/book.html#build
</message> </message>
</requireJavaVersion> </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> </rules>
</configuration> </configuration>
<executions> <executions>
@ -1875,6 +1865,24 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<configuration>
<rules>
<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>
</plugin>
</plugins> </plugins>
</build> </build>
</profile> </profile>