[
https://issues.apache.org/jira/browse/HBASE-16712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15576887#comment-15576887
]
Jonathan Hsieh commented on HBASE-16712:
----------------------------------------
In the next version I'll update the hadoop 3 version to 3.0.0-alpha1.
[~busbey] and I did some experiments. The xercesImpl being brought in seems to
be a bug in mvn (I'm using 3.3.9) not propagaing the excludes properly when
using -Dprofile.hadoop=3.0 . If I force the hadoop.profile to use 3.0 by
chaning the pom like below things work.
{code}
diff --git a/pom.xml b/pom.xml
index 3a24622..68600b9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2046,7 +2046,8 @@
<activation>
<property>
<!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
- <!--h2--><name>!hadoop.profile</name>
+ <!--h2--><name>hadoop.profile</name>
+ <value>2.0</value>
</property>
</activation>
<modules>
@@ -2237,8 +2238,8 @@
<id>hadoop-3.0</id>
<activation>
<property>
- <name>hadoop.profile</name>
- <value>3.0</value>
+ <name>!hadoop.profile</name>
+ <!-- <value>3.0</value> -->
</property>
</activation>
<modules>
@@ -2316,7 +2317,7 @@
<artifactId>hadoop-hdfs</artifactId>
<version>${hadoop-three.version}</version>
<type>test-jar</type>
- <scope>test</scope>
+<!-- <scope>test</scope> -->
<exclusions>
<exclusion>
<groupId>javax.servlet.jsp</groupId>
{code}
the xerces exclude is not needed in the hadoop3.0 profile.
I plan on documenting this in the example.
> fix hadoop-3.0 profile mvn install
> ----------------------------------
>
> Key: HBASE-16712
> URL: https://issues.apache.org/jira/browse/HBASE-16712
> Project: HBase
> Issue Type: Bug
> Components: build, hadoop3
> Affects Versions: 2.0.0
> Reporter: Jonathan Hsieh
> Assignee: Jonathan Hsieh
> Fix For: 2.0.0
>
> Attachments: h2-deps, h3-deps, hbase-16712.v0.patch,
> hbase-16712.v1.patch, hbase-16712.v2.patch
>
>
> After the compile is fixed, mvn install fails due to transitive dependencies
> coming from hadoop3.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)