You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Wei-Chiu Chuang (Jira)" <ji...@apache.org> on 2020/10/24 00:11:00 UTC

[jira] [Created] (HADOOP-17326) mvn verify fails due to duplicate entry in the shaded jar

Wei-Chiu Chuang created HADOOP-17326:
----------------------------------------

             Summary: mvn verify fails due to duplicate entry in the shaded jar
                 Key: HADOOP-17326
                 URL: https://issues.apache.org/jira/browse/HADOOP-17326
             Project: Hadoop Common
          Issue Type: Bug
          Components: build
    Affects Versions: 3.4.0
            Reporter: Wei-Chiu Chuang


Found this when I was chasing a separate shading error with [~smeng].

In trunk:

run mvn verify under hadoop-client-module/
{noformat}

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Apache Hadoop Client Modules 3.4.0-SNAPSHOT:
[INFO]
[INFO] Apache Hadoop Client Aggregator .................... SUCCESS [  2.607 s]
[INFO] Apache Hadoop Client API ........................... SUCCESS [03:16 min]
[INFO] Apache Hadoop Client Runtime ....................... SUCCESS [01:30 min]
[INFO] Apache Hadoop Client Test Minicluster .............. FAILURE [04:44 min]
[INFO] Apache Hadoop Client Packaging Invariants .......... SKIPPED
[INFO] Apache Hadoop Client Packaging Invariants for Test . SKIPPED
[INFO] Apache Hadoop Client Packaging Integration Tests ... SKIPPED
[INFO] Apache Hadoop Client Modules ....................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  09:34 min
[INFO] Finished at: 2020-10-23T16:38:53-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.2.1:shade (default) on project hadoop-client-minicluster: Error creating shaded jar: duplicate entry: META-INF/services/org.apache.hadoop.shaded.com.fasterxml.jackson.core.JsonFactory -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit

 {noformat}

This is reproducible in trunk and branch-3.3. However, not reproducible in branch-3.1.
(branch-3.3 has a different error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.2.1:shade (default) on project hadoop-client-minicluster: Error creating shaded jar: duplicate entry: META-INF/services/org.apache.hadoop.shaded.javax.ws.rs.ext.MessageBodyReader -> [Help 1])



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org