You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kenneth Sebastian (JIRA)" <ji...@apache.org> on 2016/11/04 04:34:58 UTC

[jira] [Updated] (MSHADE-238) Shade does not relocate the filenames of META-INF/services files

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

Kenneth Sebastian updated MSHADE-238:
-------------------------------------
    Attachment: pom.xml

For testing create project using attached pom file.
Do a mvn clean install 

check for files com.sun.jersey.spi.HeaderDelegateProvider   and com.sun.jersey.spi.inject.InjectableProvider inside META-INF/services.

> 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)