You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jörg Eichhorn (JIRA)" <ji...@codehaus.org> on 2013/06/22 20:54:03 UTC

[jira] (MSHADE-150) Add a generic XmlResourceTransformer

Jörg Eichhorn created MSHADE-150:
------------------------------------

             Summary: Add a generic XmlResourceTransformer
                 Key: MSHADE-150
                 URL: https://jira.codehaus.org/browse/MSHADE-150
             Project: Maven 2.x Shade Plugin
          Issue Type: Improvement
    Affects Versions: 2.1
            Reporter: Jörg Eichhorn
         Attachments: XmlResourceTransformer.patch

A generic XmlResourceTransformer is currently missing in the Maven Shade Plugin. This is needed when packaging jars and relocating packages which include Spring context files with bean definitions with relocated package names in it.

Please find the attached transformer with JUnit Tests.

The transformer has to be configured for each resource which should be transformed:

{code:xml}
...
<transformer implementation="org.apache.maven.plugins.shade.resource.XmlResourceTransformer">
    <resource>my-first-spring-context.xml</resource>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.XmlResourceTransformer">
    <resource>my-second-spring-context.xml</resource>
</transformer>
...
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira