Hi JS,

What Odea meant was if you're trying to deploy your webapp, there's already a maven-deploy-plugin that you can use instead of calling an ant build. :-)

Regards,
John

Maria Odea Ching wrote:

Hi JS,

Are you trying to deploy your war file? Because there's an existing deploy goal that already runs ant.

Regards,
Odea

Jean-Sebastien Bournival 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]

Reply via email to