You can only bind goals to a phase, never to a goal.

Just make a shell script which calls mvn ant:run jetty:run.

Hth,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



On Tue, May 26, 2009 at 10:38 AM, Laurent Perez <[email protected]> wrote:
> Hi
>
> I would like to bind an ant task from maven antrun plugin only when I
> use the jetty:run goal : my task basically extracts and preconfigures
> a few files needed at webapp startup.
>
> I've managed to bind antrun to the compile phase, but this is not good
> enough. I've tried the <goal>jetty</goal> or <goal> jetty:run</goals>
> options, but it's not working.
>
> Does anyone know how to bind to the jetty:run goal ?
>
> Thanks
> laurent
>
> --
> <a href="http://in-pocket.blogspot.com";>http://in-pocket.blogspot.com
> - Mobile world, technology and more</a>
>
> ---------------------------------------------------------------------
> 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