You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2009/12/28 20:44:55 UTC

[jira] Closed: (MSHADE-43) spring.schemas and spring.handlers support

     [ http://jira.codehaus.org/browse/MSHADE-43?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MSHADE-43.
-----------------------------------

    Resolution: Not A Bug
      Assignee: Benjamin Bentmann

As described by Sergei, this is already supported by existing code. See also the example "Merging Content of Specific Files" on [Resource Transformers|http://maven.apache.org/plugins/maven-shade-plugin/examples/resource-transformers.html].

> spring.schemas and spring.handlers support
> ------------------------------------------
>
>                 Key: MSHADE-43
>                 URL: http://jira.codehaus.org/browse/MSHADE-43
>             Project: Maven 2.x Shade Plugin
>          Issue Type: New Feature
>    Affects Versions: 1.2
>            Reporter: Erik Post
>            Assignee: Benjamin Bentmann
>         Attachments: maven-shade-plugin-spring-support.patch
>
>
> The attached patch adds support for merging the spring.schemas and spring.handlers files when shading a project that has multiple spring dependencies. The spring.schemas and spring.handlers files contain configuration data that is used by the Spring Framework when parsing context configuration XML files.
> The patch adds two resource transformers (SpringHandlersResourceTransformer and SpringSchemasResourceTransformer) that merge the contents of all encountered spring.handlers and spring.schemas files, and puts the merged files in the shaded jar. I based the code on the ComponentXmlResourceTransfomer. Unit tests are included.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira