[
https://jira.codehaus.org/browse/MSHADE-117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Scholte reopened MSHADE-117:
-----------------------------------
Ok, I'll reopen it.
My first impression is a {{won't fix}} for this issue . You shouldn't try
change the packaging-type of a project.
If the reason behind this story is to have the classes of a war available as a
jar for other projects, then I would split the project in 2: one with the
classes and one with the warContent, having a dependency to the first. This is
a pattern you see quite often.
> Add war packaged artifact support
> ---------------------------------
>
> Key: MSHADE-117
> URL: https://jira.codehaus.org/browse/MSHADE-117
> Project: Maven 2.x Shade Plugin
> Issue Type: Story
> Affects Versions: 1.5
> Reporter: Pierre Le Roux
>
> When shade plugin is executed on war packaged artifact, it generates a war
> package.
> It could be interesting to add a parameter in configuration. For example :
> <packaging> or <targetPackaging>.
> If <targetPackaging> has *war" value, some specific mecanisms could be done :
> * no jar storage in WEB-INF/lib. Same as :
> {code}
> <transformer
> implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
> <resource>.jar</resource>
> </transformer>
> {code}
> * WEB-INF classes directory content should be stored in jar root directory.
> Same as following code (if MSHADE-116 is done) :
> {code}
> <filter>
> <artifact>*:*</artifact>
> <excludes>
> <exclude>WEB-INF/classes/**</exclude>
> </excludes>
> </filter>
> ...
> <transformer
> implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
> <resource>.</resource>
> <directory>${project.build.directory}/classes</directory>
> </transformer>
> {code}
> If needed, i can contribute to this feature.
--
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