[ 
https://jira.codehaus.org/browse/MWAR-304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=331127#comment-331127
 ] 

Richard Sand commented on MWAR-304:
-----------------------------------

### Eclipse Workspace Patch 1.0
#P maven-war-plugin
Index: 
src/main/java/org/apache/maven/plugin/war/packaging/WarProjectPackagingTask.java
===================================================================
--- 
src/main/java/org/apache/maven/plugin/war/packaging/WarProjectPackagingTask.java
    (revision 1515694)
+++ 
src/main/java/org/apache/maven/plugin/war/packaging/WarProjectPackagingTask.java
    (working copy)
@@ -21,6 +21,7 @@
 
 import java.io.File;
 import java.io.IOException;
+import java.util.HashSet;
 
 import org.apache.maven.model.Resource;
 import org.apache.maven.plugin.MojoExecutionException;
@@ -192,6 +193,11 @@
         ArtifactsPackagingTask task = new ArtifactsPackagingTask( 
context.getProject().getArtifacts(),
                                                                   
currentProjectOverlay );
         task.performPackaging( context );
+        
+        @SuppressWarnings( { "unchecked", "rawtypes" } )
+        ArtifactsPackagingTask task2 = new ArtifactsPackagingTask(new 
HashSet(context.getProject().getAttachedArtifacts() ),
+                currentProjectOverlay );
+        task2.performPackaging( context );
     }
 
     /**

                
> WAR plugin ignores attached artifacts from previous plugins
> -----------------------------------------------------------
>
>                 Key: MWAR-304
>                 URL: https://jira.codehaus.org/browse/MWAR-304
>             Project: Maven WAR Plugin
>          Issue Type: Bug
>          Components: overlay
>    Affects Versions: 2.4
>         Environment: any
>            Reporter: Richard Sand
>
> If my maven project includes a plugin that attaches an artifact to the 
> project, the war plugin will not process the artifact for inclusion in the 
> results

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