Repository: hbase
Updated Branches:
  refs/heads/branch-1.3 36dc7daa1 -> e24c4e226


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

Signed-off-by: Apekshit Sharma <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/e24c4e22
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/e24c4e22
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/e24c4e22

Branch: refs/heads/branch-1.3
Commit: e24c4e226371e7fb59e9e15cc08b244e6c66002b
Parents: 36dc7da
Author: Mike Drob <[email protected]>
Authored: Mon Dec 4 16:54:01 2017 -0600
Committer: Apekshit Sharma <[email protected]>
Committed: Tue Dec 5 11:06:48 2017 -0800

----------------------------------------------------------------------
 pom.xml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/e24c4e22/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 2efffb2..6cb6923 100644
--- a/pom.xml
+++ b/pom.xml
@@ -843,12 +843,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>

Reply via email to