virajjasani commented on PR #5460:
URL: https://github.com/apache/hadoop/pull/5460#issuecomment-1461015907
```
Duplicate classes found:
Found in:
org.apache.hadoop:hadoop-client-minicluster:jar:3.4.0-SNAPSHOT:compile
org.apache.hadoop:hadoop-client-api:jar:3.4.0-SNAPSHOT:compile
Duplicate classes:
org/apache/hadoop/hdfs/server/protocol/package-info.class
```
I believe this could be avoided by excluding it from either of the poms:
```
--- a/hadoop-client-modules/hadoop-client-api/pom.xml
+++ b/hadoop-client-modules/hadoop-client-api/pom.xml
@@ -126,6 +126,12 @@
<exclude>org/apache/hadoop/yarn/client/api/package-info.class</exclude>
</excludes>
</filter>
+ <filter>
+ <artifact>org.apache.hadoop:hadoop-hdfs</artifact>
+ <excludes>
+
<exclude>org/apache/hadoop/hdfs/server/protocol/package-info.class</exclude>
+ </excludes>
+ </filter>
</filters>
<relocations>
<relocation>
```
For instance, the above patch might help. I haven't tested this but I guess
it might work.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]