Pierre Le Roux created MSHADE-118:
-------------------------------------

             Summary: When a same file exists in jar dependencies and in the 
packaged artifact, the packaged artifact file should be kept instead of jar 
content file
                 Key: MSHADE-118
                 URL: https://jira.codehaus.org/browse/MSHADE-118
             Project: Maven 2.x Shade Plugin
          Issue Type: Improvement
            Reporter: Pierre Le Roux


For example, i have files *A.txt* in all dependencies jar META-INF directory.

I also have a *A.txt* in the artifact i want to "shade".

In the target package, my artifact A.txt file doesn't have priority on other 
files. I think it should by default.

As a workaround, it can be done specifically for each file like this :
{code}
<transformer 
implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
        <resource>META-INF/itcbProjectInformation.properties</resource>
</transformer>
<transformer 
implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
        <resource>META-INF/itcbProjectInformation.properties</resource>
        
<file>src/main/resources/META-INF/itcbProjectInformation.properties</file>
</transformer>
{code}

--
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

        

Reply via email to