HBASE-19422 Provide clear error message on use of wrong hadoop-profile property

Signed-off-by: Apekshit Sharma <appy@apache.org>
This commit is contained in:
Mike Drob 2017-12-04 16:54:01 -06:00 committed by Apekshit Sharma
parent ba5bd0ae5b
commit cf73199d06
1 changed files with 6 additions and 1 deletions

View File

@ -846,12 +846,17 @@
<!-- version set by parent -->
<executions>
<execution>
<id>min-maven-min-java-banned-xerces</id>
<id>hadoop-profile-min-maven-min-java-banned-xerces</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<!-- Help people activate profiles correctly -->
<evaluateBeanshell>
<condition>System.getProperty("hadoop-profile", "").isEmpty()</condition>
<message>The hadoop-profile property is unused, did you mean to set hadoop.profile instead?</message>
</evaluateBeanshell>
<!-- The earliest maven version we verify builds for via ASF Jenkins -->
<requireMavenVersion>
<version>[${maven.min.version},)</version>