Uploaded image for project: 'Maven Shade Plugin'
  1. Maven Shade Plugin
  2. MSHADE-238

Shade does not relocate the filenames of META-INF/services files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.4.3
    • None
    • None

    Description

      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.

      Attachments

        1. pom.xml
          3 kB
          Kenneth Sebastian

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kenseb Kenneth Sebastian
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: