Pierre Le Roux created MSHADE-117:
-------------------------------------

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

        

Reply via email to