You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ben Hogan <be...@lizardsoftware.com> on 2003/04/13 03:46:32 UTC

war task not updating an existing war (plugin calls ant task)

I imagine that this is already fixed in the head, but for those of us who
downloaded the beta-9 release....

the new maven download (beta-9) in the war plugin uses new ant and its war
task, but does not specify update="true".

workaround: use a pre-goal to delete the file like so (in maven.xml):

<preGoal name="war:war">
        <delete file="${maven.war.build.dir}/${pom.artifactId}.war" />
</preGoal>

example of a war call that might work every time:

 <war warfile="${maven.war.build.dir}/${maven.war.final.name}"
         webxml="${maven.war.webxml}" update="true" >

Ben Hogan
ben@lizardsoftware.com
http://beagile.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: war task not updating an existing war (plugin calls ant task)

Posted by Ben Hogan <be...@lizardsoftware.com>.
I had thought that a newer ant.jar (1.5.1) bundled with beta-9 might be the
cause of the change. on the other hand, I'm new to maven so ant might have
nothing to do with it.

----- Original Message -----
From: <di...@multitask.com.au>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Sunday, April 13, 2003 3:29 AM
Subject: Re: war task not updating an existing war (plugin calls ant task)


> Ben,
>
> what's "new ant"?
> --
> dIon Gillard, Multitask Consulting
> Blog:      http://www.freeroller.net/page/dion/Weblog
> Work:      http://www.multitask.com.au



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: war task not updating an existing war (plugin calls ant task)

Posted by di...@multitask.com.au.
Ben,

what's "new ant"?
--
dIon Gillard, Multitask Consulting
Blog:      http://www.freeroller.net/page/dion/Weblog
Work:      http://www.multitask.com.au


"Ben Hogan" <be...@lizardsoftware.com> wrote on 13/04/2003 11:46:32 AM:

> I imagine that this is already fixed in the head, but for those of us 
who
> downloaded the beta-9 release....
> 
> the new maven download (beta-9) in the war plugin uses new ant and its 
war
> task, but does not specify update="true".
> 
> workaround: use a pre-goal to delete the file like so (in maven.xml):
> 
> <preGoal name="war:war">
>         <delete file="${maven.war.build.dir}/${pom.artifactId}.war" />
> </preGoal>
> 
> example of a war call that might work every time:
> 
>  <war warfile="${maven.war.build.dir}/${maven.war.final.name}"
>          webxml="${maven.war.webxml}" update="true" >
> 
> Ben Hogan
> ben@lizardsoftware.com
> http://beagile.com/
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: war task not updating an existing war (plugin calls ant task)

Posted by di...@multitask.com.au.
Just fixed this in HEAD, thanks.

I've placed a snapshot of the war plugin at: 
http://www.ibiblio.org/maven/maven/jars/maven-war-plugin-SNAPSHOT.jar

You can place this jar in $MAVEN_HOME/plugins instead of the 1.3 version.

Which reminds me, we really need a plugin:download goal for the plugin 
plugin.
--
dIon Gillard, Multitask Consulting
Blog:      http://www.freeroller.net/page/dion/Weblog
Work:      http://www.multitask.com.au


"Ben Hogan" <be...@lizardsoftware.com> wrote on 13/04/2003 11:46:32 AM:

> I imagine that this is already fixed in the head, but for those of us 
who
> downloaded the beta-9 release....
> 
> the new maven download (beta-9) in the war plugin uses new ant and its 
war
> task, but does not specify update="true".
> 
> workaround: use a pre-goal to delete the file like so (in maven.xml):
> 
> <preGoal name="war:war">
>         <delete file="${maven.war.build.dir}/${pom.artifactId}.war" />
> </preGoal>
> 
> example of a war call that might work every time:
> 
>  <war warfile="${maven.war.build.dir}/${maven.war.final.name}"
>          webxml="${maven.war.webxml}" update="true" >
> 
> Ben Hogan
> ben@lizardsoftware.com
> http://beagile.com/
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org