[ 
https://issues.apache.org/jira/browse/HBASE-9592?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Enis Soztutar resolved HBASE-9592.
----------------------------------

    Resolution: Not A Problem

Ok, this turned out to be not a problem. Even if downstream project uses 
hadoop.profile, it seems that it does not activate/deactivate the profile in 
hbase pom which is a dependency. 

mvn -Dhadoop.profile=2 -Dhbase.version=0.96.0-hadoop2 dependency:tree
works fine. 
                
> Downstream projects cannot use hadoop.profile in their maven builds 
> --------------------------------------------------------------------
>
>                 Key: HBASE-9592
>                 URL: https://issues.apache.org/jira/browse/HBASE-9592
>             Project: HBase
>          Issue Type: Bug
>          Components: build
>            Reporter: Enis Soztutar
>            Assignee: Enis Soztutar
>             Fix For: 0.96.1
>
>         Attachments: hbase-9592_v1.patch
>
>
> When a downstream project depends on hbase, and uses hadoop.profile in it's 
> build, then maven craps out because the pom file generated by 
> generate-hadoopX-poms.sh will not activate the relevant hadoop profile:
> {code}
> mvn -Dhadoop.profile=2 dependency:tree 
> [INFO] Scanning for projects...
> [INFO]                                                                        
>  
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building foo-app 1.0-SNAPSHOT
> [INFO] 
> ------------------------------------------------------------------------
> [WARNING] The POM for org.apache.hbase:hbase-common:jar:0.96.0 is invalid, 
> transitive dependencies (if any) will not be available, enable debug logging 
> for more details
> [WARNING] The POM for org.apache.hbase:hbase-common:jar:tests:0.96.0 is 
> invalid, transitive dependencies (if any) will not be available, enable debug 
> logging for more details
> [WARNING] The POM for org.apache.hbase:hbase-client:jar:0.96.0 is invalid, 
> transitive dependencies (if any) will not be available, enable debug logging 
> for more details
> [WARNING] The POM for org.apache.hbase:hbase-server:jar:0.96.0 is invalid, 
> transitive dependencies (if any) will not be available, enable debug logging 
> for more details
> [WARNING] The POM for org.apache.hbase:hbase-server:jar:tests:0.96.0 is 
> invalid, transitive dependencies (if any) will not be available, enable debug 
> logging for more details
> [WARNING] The POM for org.apache.hbase:hbase-hadoop-compat:jar:tests:0.96.0 
> is invalid, transitive dependencies (if any) will not be available, enable 
> debug logging for more details
> [WARNING] The POM for org.apache.hbase:hbase-hadoop2-compat:jar:tests:0.96.0 
> is invalid, transitive dependencies (if any) will not be available, enable 
> debug logging for more details
> {code}
> Note that a lot of downstream components like flume, mahout, sqoop use this 
> property. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to