You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Martin van der Plas <mv...@imc.nl> on 2005/12/16 15:21:27 UTC
antrun plugin in both parent and child run tasks twice
Hi,
When I have a parent and child pom, and both have an antrun plugin
entry, I notice that activated anttask run twice.
See attached poms and the output below.
My directory structure:
parent/
--------/pom.xml
--------/child
---------------/pom.xml
Is this behaviour intended? How should I change my poms?
Thanks
Martin
mvn test
[INFO] Scanning for projects...
[INFO] -------------------------------------------------------------------------
---
[INFO] Building child
[INFO] task-segment: [test]
[INFO] -------------------------------------------------------------------------
---
[INFO] [antrun:run {execution: test1}]
[INFO] Executing tasks
[echo] test1
[INFO] Executed tasks
[INFO] [antrun:run {execution: childTest1}]
[INFO] Executing tasks
[echo] childTest1
[INFO] Executed tasks
[INFO] [antrun:run {execution: test1}]
[INFO] Executing tasks
[echo] test1
[INFO] Executed tasks
[INFO] [antrun:run {execution: childTest1}]
[INFO] Executing tasks
[echo] childTest1
[INFO] Executed tasks
[INFO] [antrun:run {execution: test3}]
[INFO] Executing tasks
[echo] test3
[INFO] Executed tasks
[INFO] [antrun:run {execution: childTest3}]
[INFO] Executing tasks
[echo] childTest3
[INFO] Executed tasks
[INFO] [antrun:run {execution: test3}]
[INFO] Executing tasks
[echo] test3
[INFO] Executed tasks
[INFO] [antrun:run {execution: childTest3}]
[INFO] Executing tasks
[echo] childTest3
[INFO] Executed tasks
[INFO] -------------------------------------------------------------------------
---
[INFO] BUILD SUCCESSFUL
[INFO] -------------------------------------------------------------------------
---
Re: antrun plugin in both parent and child run tasks twice
Posted by Martin van der Plas <mv...@imc.nl>.
Hi Antrun developer,
Please respond.
Martin
Martin van der Plas wrote:
> Hi,
>
> When I have a parent and child pom, and both have an antrun plugin
> entry, I notice that activated anttask run twice.
> See attached poms and the output below.
>
> My directory structure:
> parent/
> --------/pom.xml
> --------/child
> ---------------/pom.xml
>
>
>
> Is this behaviour intended? How should I change my poms?
>
> Thanks
>
> Martin
>
>
> mvn test
> [INFO] Scanning for projects...
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] Building child
> [INFO] task-segment: [test]
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] [antrun:run {execution: test1}]
> [INFO] Executing tasks
> [echo] test1
> [INFO] Executed tasks
> [INFO] [antrun:run {execution: childTest1}]
> [INFO] Executing tasks
> [echo] childTest1
> [INFO] Executed tasks
> [INFO] [antrun:run {execution: test1}]
> [INFO] Executing tasks
> [echo] test1
> [INFO] Executed tasks
> [INFO] [antrun:run {execution: childTest1}]
> [INFO] Executing tasks
> [echo] childTest1
> [INFO] Executed tasks
> [INFO] [antrun:run {execution: test3}]
> [INFO] Executing tasks
> [echo] test3
> [INFO] Executed tasks
> [INFO] [antrun:run {execution: childTest3}]
> [INFO] Executing tasks
> [echo] childTest3
> [INFO] Executed tasks
> [INFO] [antrun:run {execution: test3}]
> [INFO] Executing tasks
> [echo] test3
> [INFO] Executed tasks
> [INFO] [antrun:run {execution: childTest3}]
> [INFO] Executing tasks
> [echo] childTest3
> [INFO] Executed tasks
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] BUILD SUCCESSFUL
> [INFO]
> -------------------------------------------------------------------------
> ---
>
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
--
Groeten,
Martin
mailto:mvdp@imc.nl
tel: +31 (0) 20-7988464
mob: +31 (0) 6-21551921
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org