maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Boué (JIRA) <j...@apache.org>
Subject [jira] [Closed] (MSHADE-238) Shade does not relocate the filenames of META-INF/services files
Date Fri, 04 Nov 2016 17:25:58 GMT

     [ https://issues.apache.org/jira/browse/MSHADE-238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Guillaume Boué closed MSHADE-238.
---------------------------------
    Resolution: Duplicate

> Shade does not relocate the filenames of META-INF/services files
> ----------------------------------------------------------------
>
>                 Key: MSHADE-238
>                 URL: https://issues.apache.org/jira/browse/MSHADE-238
>             Project: Maven Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 2.4.3
>            Reporter: Kenneth Sebastian
>         Attachments: pom.xml
>
>
> I am trying to shade jersey (com.sun.jersey) packages.
> following is my pom entry
>     <execution>
>     <phase>package</phase>
>     <goals>
>         <goal>shade</goal>
>     </goals>
>     <configuration>
>         <shadedClassifierName>jar-with-dependencies</shadedClassifierName>
>         <minimizeJar>false</minimizeJar>
>         <keepDependenciesWithProvidedScope>false</keepDependenciesWithProvidedScope>
>         <shadedArtifactAttached>true</shadedArtifactAttached>
>         <relocations>
>             <relocation>
>                 <pattern>com.sun.jersey</pattern>
>                 <shadedPattern>route66.com.sun.jersey</shadedPattern>
>             </relocation>
>         </relocations>
>         <transformers>
>             <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
>                 <mainClass>com.yahoo.infox.route66.udf.ContentExtractorUdf</mainClass>
>             </transformer>
>             <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
>         </transformers>
>         <filters>
>             <filter>
>                 <artifact>*:*</artifact>
>                 <excludes>
>                     <exclude>META-INF/*.SF</exclude>
>                     <exclude>META-INF/*.DSA</exclude>
>                     <exclude>META-INF/*.RSA</exclude>
>                 </excludes>
>             </filter>
>         </filters>
>     </configuration>
> </execution>
> I am using org.apache.maven.plugins.shade.resource.ServicesResourceTransformer to tranforms
class names in META-INF/services files. 
> Plugin is transforming class names in META-INF/services/* files correctly. But it not
transforming the filenames. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message