You can do that partly by configuring the plugin in the pluginManagement
section with the magic "default-cli" id:
http://maven.apache.org/guides/mini/guide-default-execution-ids.html

Passing on which target to execute is still to solve though

/Anders

2010/2/20 Teimatini Marín <[email protected]>

> If I execute the ant task from maven I don't need to download, install
> and configure Ant manually... Maven do it for me. That's the only
> reason.
>
> I would be great if could do something similar to this:
> mvn antrun:run -Dtarget="mytarget"
>
> Thanks
>
> 2010/2/19 Wayne Fay <[email protected]>:
> >> How can I execute the following ant task? I don't want to attach it to
> >> any phase... I only want to execute it from maven whenever I want...
> >
> > Why bother using Maven in that case? Just call ant directly from the
> > command line...
> >
> > Wayne
> >
> > ---------------------------------------------------------------------
> > 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