maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (MSHADE-118) 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
Date Sun, 06 Sep 2015 20:46:29 GMT

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

Michael Osipov closed MSHADE-118.
---------------------------------
    Resolution: Auto Closed

This issue has been auto closed because it has been inactive for a long period of time. If
you think this issue still applies, retest your problem with the most recent version of Maven
and the affected component, reopen and post your results.

> 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://issues.apache.org/jira/browse/MSHADE-118
>             Project: Maven 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 was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message