You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Chris Dennis (Jira)" <ji...@apache.org> on 2020/05/18 21:05:00 UTC

[jira] [Created] (MSHADE-367) ServicesResourceTransformer & relocation together cause issues with "reshading"

Chris Dennis created MSHADE-367:
-----------------------------------

             Summary: ServicesResourceTransformer & relocation together cause issues with "reshading"
                 Key: MSHADE-367
                 URL: https://issues.apache.org/jira/browse/MSHADE-367
             Project: Maven Shade Plugin
          Issue Type: Bug
    Affects Versions: 3.2.3
            Reporter: Chris Dennis
         Attachments: maven-shade-bug.zip

The attached sample project shades {{org.terracotta:a}} in to {{org.terracotta:b}}. Both a and b declare an implementation of a shared service interface {{org.terracotta.Service}}. When you {{mvn package}} this project everything works as it should. If you run {{mvn package}} again without cleaning first plugin appears to attempt to shade on top of itself and complains that the service file colliides in the JAR file. This issue is hitting us during our build process. We have worked around it by having a task delete the shade output during the pre-package phase but would appreciate a better solution.



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