You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Clinton Foster (JIRA)" <ji...@codehaus.org> on 2012/10/29 21:31:13 UTC

[jira] (MSHADE-133) DontIncludeResourceTransformer only recognizes a single resource element

Clinton Foster created MSHADE-133:
-------------------------------------

             Summary: DontIncludeResourceTransformer only recognizes a single resource element
                 Key: MSHADE-133
                 URL: https://jira.codehaus.org/browse/MSHADE-133
             Project: Maven 2.x Shade Plugin
          Issue Type: Bug
    Affects Versions: 2.0
            Reporter: Clinton Foster
            Priority: Minor


When I code the following, only one of the two resources is excluded:
{code:xml}
<transformers>
	<transformer
		implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
		<resource>myConfig.yml</resource>
		<resource>logback.xml</resource>
	</transformer>
</transformers>
{code}

It only works if the DontIncludeResourceTransformer transfer element is repeated for each resource:
{code:xml}
<transformers>
	<transformer
		implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
		<resource>myConfig.yml</resource>
	</transformer>
	<transformer
		implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
		<resource>logback.xml</resource>
	</transformer>
</transformers>
{code}
Is this working as designed?

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