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

Robert Scholte closed MSHADE-133.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0
         Assignee: Robert Scholte

Fixed in [r1481652|http://svn.apache.org/r1481652]
Now you can add multiple resources to the transformer like this:

{code:xml}
<transformer 
implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
  <resources>
    <resource>myConfig.yml</resource>
    <resource>logback.xml</resource>
  </resources>
</transformer>
{code}
                
> 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: Improvement
>    Affects Versions: 2.0
>            Reporter: Clinton Foster
>            Assignee: Robert Scholte
>            Priority: Minor
>             Fix For: 3.0
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to