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:
parent
8e3714e772
commit
50c5988971
7
pom.xml
7
pom.xml
|
@ -1002,12 +1002,17 @@
|
||||||
<!-- version set by parent -->
|
<!-- version set by parent -->
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>min-maven-min-java-banned-xerces</id>
|
<id>hadoop-profile-min-maven-min-java-banned-xerces</id>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>enforce</goal>
|
<goal>enforce</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<rules>
|
<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 -->
|
<!-- The earliest maven version we verify builds for via ASF Jenkins -->
|
||||||
<requireMavenVersion>
|
<requireMavenVersion>
|
||||||
<version>[${maven.min.version},)</version>
|
<version>[${maven.min.version},)</version>
|
||||||
|
|
Loading…
Reference in New Issue