[
https://issues.apache.org/jira/browse/HDFS-12341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mukul Kumar Singh updated HDFS-12341:
-------------------------------------
Attachment: HDFS-12341-HDFS-7240.001.patch
The issue seems to be because of the following lines in
hadoop-hdfs-project/hadoop-hdfs-client/pom.xml
{code}
- <dependency>
- <groupId>io.netty</groupId>
- <artifactId>netty-all</artifactId>
- </dependency>
{code}
Netty is already added as a dependency with scope "test", hence removed this
newly added dependency which came in as part of merging trunk to HDFS-7240
{code}
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<scope>test</scope>
</dependency>
{code}
> Ozone: maven dist compilation fails with "Duplicate classes found" error
> ------------------------------------------------------------------------
>
> Key: HDFS-12341
> URL: https://issues.apache.org/jira/browse/HDFS-12341
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: ozone
> Affects Versions: HDFS-7240
> Reporter: Mukul Kumar Singh
> Assignee: Mukul Kumar Singh
> Fix For: HDFS-7240
>
> Attachments: HDFS-12341-HDFS-7240.001.patch
>
>
> {{mvn package -Pdist -DskipTests -Dtar -Dmaven.javadoc.skip=true}} fails with
> the following error
> {code}
> [WARNING] Rule 1: org.apache.maven.plugins.enforcer.BanDuplicateClasses
> failed with message:
> Duplicate classes found:
> Found in:
>
> org.apache.hadoop:hadoop-client-minicluster:jar:3.0.0-beta1-SNAPSHOT:compile
> org.apache.hadoop:hadoop-client-runtime:jar:3.0.0-beta1-SNAPSHOT:compile
> Duplicate classes:
> org/apache/hadoop/shaded/io/netty/buffer/ByteBufProcessor$3.class
>
> org/apache/hadoop/shaded/io/netty/handler/codec/sctp/SctpOutboundByteStreamHandler.class
>
> org/apache/hadoop/shaded/io/netty/handler/codec/rtsp/RtspObjectEncoder.class
>
> org/apache/hadoop/shaded/io/netty/channel/AbstractChannel$AbstractUnsafe.class
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]