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]

Reply via email to