maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wayne Fay <wayne...@gmail.com>
Subject Re: I need a complete antrun:run command for invoking ant-task by its <id>, other than "default-cli".
Date Thu, 24 Jan 2013 16:24:48 GMT
>         <plugin>
>             <groupId>org.apache.maven.plugins</groupId>
>             <artifactId>maven-antrun-plugin</artifactId>
>             <version>1.7</version>
>             <executions>
>                 <execution>
                       <phase><!-- needs a lifecycle phase here --></phase>
>                     <id>startupTomcat</id>
>                     <goals>
>                         <goal>run</goal>
>                     </goals>

Generally I'd expect you to have a lifecycle phase defined in the
<execution> and then you'd run "mvn <phase>" and Antrun would be
automatically invoked during that phase to start your Tomcat instance.

If this startpTomcat step is not going to be a regular part of your
build in this project, you can use Maven Profiles instead, but at that
point I think there is no good reason to use Maven at all and you
might as well use Ant directly with its own build.xml etc.

Wayne

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


Mime
View raw message