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
ba5bd0ae5b
commit
cf73199d06
7
pom.xml
7
pom.xml
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue