You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Allan Ramirez (JIRA)" <ji...@codehaus.org> on 2006/03/23 03:36:11 UTC

[jira] Closed: (MWAR-13) War plugin needs better handling of multiple executions

     [ http://jira.codehaus.org/browse/MWAR-13?page=all ]
     
Allan Ramirez closed MWAR-13:
-----------------------------

    Resolution: Fixed

Applied Patch. Thanks!

> War plugin needs better handling of multiple executions
> -------------------------------------------------------
>
>          Key: MWAR-13
>          URL: http://jira.codehaus.org/browse/MWAR-13
>      Project: Maven 2.x War Plugin
>         Type: Improvement

>  Environment: winxp
>     Reporter: Brian Fox
>     Assignee: Maria Odea Ching
>      Fix For: 2.0
>  Attachments: MWAR-13-maven-war-plugin.patch
>
> Original Estimate: 5 hours
>        Time Spent: 6 hours
>         Remaining: 0 minutes
>
> Currently the war plugin sets a reference that is used by install and deploy to know which file to work on. This is troublesome for running multiple executions. Would be nice if it was an option to turn this off so war could be run in an execution without messing with the normal lifecycle.
>   <build>
>     <finalName>cdr-ui</finalName>
>     <plugins>
>       <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-war-plugin</artifactId>
> 		<configuration>
> 			<excludes>**/*.jar</excludes>
>         	</configuration>
>         <executions>
> 	<execution>
> 		<id>default</id>
>                 <goals>
>               		<goal>war</goal>
>             	</goals>
> 		<configuration>
> 			<excludes>.dontcare</excludes>
> 			<warName>test</warName>
> 		</configuration>
> 	</execution>
> 	</executions> 
>       </plugin>
>     </plugins>
> Something like above will generate 2 wars, but unexpectedly, the install and deploy pick up the test.war no the one named using <finalName>

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