maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anders Hammar <and...@hammar.net>
Subject Re: Execute an ant task, but in any phase... just the task
Date Sat, 20 Feb 2010 12:47:20 GMT
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 <teimatini@gmail.com>

> 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 <waynefay@gmail.com>:
> >> 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: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message