You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by QkI <ku...@gmail.com> on 2010/07/12 14:37:57 UTC
Run external tasks using maven
Hi,
Is it possible to run ant tasks which is not connected with any build
lifecycle phase?
In other word I would like to perform some action on demand using maven and
antrun plugin.
Regards,
QkI
--
View this message in context: http://maven.40175.n5.nabble.com/Run-external-tasks-using-maven-tp1046324p1046324.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Run external tasks using maven
Posted by Stephen Connolly <st...@gmail.com>.
I favour laucher projects or profiles with goals bound to the validate phase
On 12 July 2010 15:59, Jochen Wiedmann <jo...@gmail.com> wrote:
> On Mon, Jul 12, 2010 at 4:54 PM, Wayne Fay <wa...@gmail.com> wrote:
> >> Is it possible to run ant tasks which is not connected with any build
> >> lifecycle phase?
> >> In other word I would like to perform some action on demand using maven
> and
> >> antrun plugin.
> >
> > Why bother??? Just run ant directly in this case.
>
> See
>
> http://www.mail-archive.com/dev@maven.apache.org/msg85058.html
>
> for a possible reason.
>
> Jochen
>
>
> --
> Germanys national anthem is the most boring in the world - how telling!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Run external tasks using maven
Posted by Jochen Wiedmann <jo...@gmail.com>.
On Mon, Jul 12, 2010 at 4:54 PM, Wayne Fay <wa...@gmail.com> wrote:
>> Is it possible to run ant tasks which is not connected with any build
>> lifecycle phase?
>> In other word I would like to perform some action on demand using maven and
>> antrun plugin.
>
> Why bother??? Just run ant directly in this case.
See
http://www.mail-archive.com/dev@maven.apache.org/msg85058.html
for a possible reason.
Jochen
--
Germanys national anthem is the most boring in the world - how telling!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Run external tasks using maven
Posted by Wayne Fay <wa...@gmail.com>.
> Is it possible to run ant tasks which is not connected with any build
> lifecycle phase?
> In other word I would like to perform some action on demand using maven and
> antrun plugin.
Why bother??? Just run ant directly in this case.
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Run external tasks using maven
Posted by Wim Deblauwe <wi...@gmail.com>.
You need specify the configuration tag as a child tag of the plugin tag:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<configuration>
<tasks>
<echo message="test"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<configuration>
<tasks>
<echo message="test"/>
</tasks>
</configuration>
</plugin>
The strange thing is that one of them is used when running from the command
line and the other one if you run it via a lifecycle phase. If there is
anybody who knows how to avoid this duplication, please let me know!
regards,
Wim
2010/7/12 QkI <ku...@gmail.com>
>
> This doesn't work.
>
> My configuration:
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-antrun-plugin</artifactId>
> <version>1.4</version>
> <executions>
> <execution>
> <configuration>
> <tasks>
> <echo message="test"/>
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
> and mvn antrun:run doesn't produce any result on the screen.
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Run-external-tasks-using-maven-tp1046324p1046344.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Run external tasks using maven
Posted by QkI <ku...@gmail.com>.
This doesn't work.
My configuration:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<configuration>
<tasks>
<echo message="test"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
and mvn antrun:run doesn't produce any result on the screen.
--
View this message in context: http://maven.40175.n5.nabble.com/Run-external-tasks-using-maven-tp1046324p1046344.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Run external tasks using maven
Posted by Wim Deblauwe <wi...@gmail.com>.
Just call the run goal of the antrun plugin on the command line, like this:
mvn antrun:run
regards,
Wim
2010/7/12 QkI <ku...@gmail.com>
>
> Hi,
> Is it possible to run ant tasks which is not connected with any build
> lifecycle phase?
> In other word I would like to perform some action on demand using maven and
> antrun plugin.
>
> Regards,
> QkI
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Run-external-tasks-using-maven-tp1046324p1046324.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>