I am running war:war. But in the end I tried to run mvn package, and it worked! I guess "war:war" is called at some point when "package" is running (maybe it takes the packaging type into account). So by calling the package goal, the lifecycle phases are executed, and so is my antrun plugin call I have in my pom.xml
Thanx guys! Js. -----Message d'origine----- De : Brett Porter [mailto:[EMAIL PROTECTED] Envoyé : 26 novembre 2005 19:03 À : Maven Users List Objet : Re: Antrun plugin and the war:war phases It looks right (I assume your deploy goal is to deploy into a running appserver rather than to a repository, so this is a reasonble phase to do it in). Are you actually running mvn package, or mvn war:war? - Brett On 11/26/05, Jean-Sebastien Bournival <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to trigger an ant task after I used the maven war:war > goal. The problem I have is that nothing ever happens regarding the > antrun plugin. I do not see any trace of execution besides the > war:war plugin. Am I doing something wrong? Am I targeting the right > phase? What are the lifecycle involved in the war:war plugin? How can I know this? > > Here is my <build /> block in my pom.xml: > > <build> > <finalName>my-webapp</finalName> > <plugins> > <plugin> > <artifactId>maven-antrun-plugin</artifactId> > <executions> > <execution> > <phase>package</phase> > <configuration> > <tasks> > <ant antfile="build.xml" target="deploy" /> > </tasks> > </configuration> > <goals> > <goal>run</goal> > </goals> > </execution> > </executions> > </plugin> > </plugins> > </build> > > Thanx, > > JS. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
