Secondary artifacts aren't being attached
-----------------------------------------
Key: MWAR-69
URL: http://jira.codehaus.org/browse/MWAR-69
Project: Maven 2.x War Plugin
Issue Type: Bug
Reporter: Jochen Wiedmann
Attachments: maven-secondary-artifact.patch
If I do configure the maven-war-plugin to create a secondary artifact, then
that artifact isn't attached. I do believe, this is because the following code
snippet is missing:
Index: src/main/java/org/apache/maven/plugin/war/WarMojo.java
===================================================================
--- src/main/java/org/apache/maven/plugin/war/WarMojo.java (revision
433193)
+++ src/main/java/org/apache/maven/plugin/war/WarMojo.java (working copy)
@@ -192,6 +192,10 @@
{
artifact.setFile( warFile );
}
+ else
+ {
+ projectHelper.attachArtifact( getProject(). "war", warFile );
+ }
}
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira