You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hung Le (JIRA)" <ji...@codehaus.org> on 2006/08/09 03:26:09 UTC
[jira] Created: (MANTRUN-57) merge issue from parent causing
executions to be run multiple times
merge issue from parent causing executions to be run multiple times
-------------------------------------------------------------------
Key: MANTRUN-57
URL: http://jira.codehaus.org/browse/MANTRUN-57
Project: Maven 2.x Antrun Plugin
Issue Type: Bug
Affects Versions: 1.1
Environment: Linux Fedora Core 5, SUN JDK 1.5
Reporter: Hung Le
Fix For: 1.1
Attachments: antrun-testcase.zip, epom.xml
Has parent/child project
parent
child1
in parent's pom.xml, define a "run"
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>e1</id>
<phase>generate-sources</phase>
<configuration>
<tasks>
<echo message="ant e1" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
In child,'s pom.xml, define another "run"
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>e2</id>
<phase>generate-sources</phase>
<configuration>
<tasks>
<echo message="ant e2" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Expect the two declaration to be merged so that during the generate-sources phase for the child I will see
ant e1
ant e2
what happens right now
[INFO] [antrun:run {execution: e1}]
[INFO] Executing tasks
[echo] ant e1
[INFO] Executed tasks
[INFO] [antrun:run {execution: e2}]
[INFO] Executing tasks
[echo] ant e2
[INFO] Executed tasks
[INFO] [antrun:run {execution: e1}]
[INFO] Executing tasks
[echo] ant e1
[INFO] Executed tasks
[INFO] [antrun:run {execution: e2}]
[INFO] Executing tasks
[echo] ant e2
help:effective-pom shows the merged pom at the child with merge but duplicated antrun plugin declaration
...
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>e1</id>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<echo message="ant e1"></echo>
</tasks>
</configuration>
</execution>
<execution>
<id>e2</id>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<echo message="ant e2"></echo>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>e1</id>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<echo message="ant e1"></echo>
</tasks>
</configuration>
</execution>
<execution>
<id>e2</id>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<echo message="ant e2"></echo>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
..
Attached please find
. *.zip has a sample parent/child example, you can go to child1 and do
mvn compile
. epom.xml is the output of 'mvn help:effective-pom' for the child project
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MANTRUN-57) merge issue from parent causing
executions to be run multiple times
Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MANTRUN-57?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kenney Westerhof updated MANTRUN-57:
------------------------------------
Fix Version/s: (was: 1.1)
1.2
update fix version since it's not fixed and 1.1 has been released.
> merge issue from parent causing executions to be run multiple times
> -------------------------------------------------------------------
>
> Key: MANTRUN-57
> URL: http://jira.codehaus.org/browse/MANTRUN-57
> Project: Maven 2.x Antrun Plugin
> Issue Type: Bug
> Affects Versions: 1.1
> Environment: Linux Fedora Core 5, SUN JDK 1.5
> Reporter: Hung Le
> Fix For: 1.2
>
> Attachments: antrun-testcase.zip, epom.xml
>
>
> Has parent/child project
> parent
> child1
> in parent's pom.xml, define a "run"
> <build>
> <plugins>
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>e1</id>
> <phase>generate-sources</phase>
> <configuration>
> <tasks>
> <echo message="ant e1" />
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
> In child,'s pom.xml, define another "run"
> <build>
> <plugins>
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>e2</id>
> <phase>generate-sources</phase>
> <configuration>
> <tasks>
> <echo message="ant e2" />
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
> Expect the two declaration to be merged so that during the generate-sources phase for the child I will see
> ant e1
> ant e2
> what happens right now
> [INFO] [antrun:run {execution: e1}]
> [INFO] Executing tasks
> [echo] ant e1
> [INFO] Executed tasks
> [INFO] [antrun:run {execution: e2}]
> [INFO] Executing tasks
> [echo] ant e2
> [INFO] Executed tasks
> [INFO] [antrun:run {execution: e1}]
> [INFO] Executing tasks
> [echo] ant e1
> [INFO] Executed tasks
> [INFO] [antrun:run {execution: e2}]
> [INFO] Executing tasks
> [echo] ant e2
> help:effective-pom shows the merged pom at the child with merge but duplicated antrun plugin declaration
> ...
> <plugins>
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>e1</id>
> <phase>generate-sources</phase>
> <goals>
> <goal>run</goal>
> </goals>
> <configuration>
> <tasks>
> <echo message="ant e1"></echo>
> </tasks>
> </configuration>
> </execution>
> <execution>
> <id>e2</id>
> <phase>generate-sources</phase>
> <goals>
> <goal>run</goal>
> </goals>
> <configuration>
> <tasks>
> <echo message="ant e2"></echo>
> </tasks>
> </configuration>
> </execution>
> </executions>
> </plugin>
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>e1</id>
> <phase>generate-sources</phase>
> <goals>
> <goal>run</goal>
> </goals>
> <configuration>
> <tasks>
> <echo message="ant e1"></echo>
> </tasks>
> </configuration>
> </execution>
> <execution>
> <id>e2</id>
> <phase>generate-sources</phase>
> <goals>
> <goal>run</goal>
> </goals>
> <configuration>
> <tasks>
> <echo message="ant e2"></echo>
> </tasks>
> </configuration>
> </execution>
> </executions>
> </plugin>
> ..
> Attached please find
> . *.zip has a sample parent/child example, you can go to child1 and do
> mvn compile
> . epom.xml is the output of 'mvn help:effective-pom' for the child project
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MANTRUN-57) merge issue from parent causing
executions to be run multiple times
Posted by "Hung Le (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MANTRUN-57?page=comments#action_72048 ]
Hung Le commented on MANTRUN-57:
--------------------------------
Upon further investigation I don't think this antrun plugin specific. I believe maven is the one which merge the pom's. How do I change this to a Maven jira and not antrun plugin jira?
> merge issue from parent causing executions to be run multiple times
> -------------------------------------------------------------------
>
> Key: MANTRUN-57
> URL: http://jira.codehaus.org/browse/MANTRUN-57
> Project: Maven 2.x Antrun Plugin
> Issue Type: Bug
> Affects Versions: 1.1
> Environment: Linux Fedora Core 5, SUN JDK 1.5
> Reporter: Hung Le
> Fix For: 1.1
>
> Attachments: antrun-testcase.zip, epom.xml
>
>
> Has parent/child project
> parent
> child1
> in parent's pom.xml, define a "run"
> <build>
> <plugins>
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>e1</id>
> <phase>generate-sources</phase>
> <configuration>
> <tasks>
> <echo message="ant e1" />
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
> In child,'s pom.xml, define another "run"
> <build>
> <plugins>
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>e2</id>
> <phase>generate-sources</phase>
> <configuration>
> <tasks>
> <echo message="ant e2" />
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
> Expect the two declaration to be merged so that during the generate-sources phase for the child I will see
> ant e1
> ant e2
> what happens right now
> [INFO] [antrun:run {execution: e1}]
> [INFO] Executing tasks
> [echo] ant e1
> [INFO] Executed tasks
> [INFO] [antrun:run {execution: e2}]
> [INFO] Executing tasks
> [echo] ant e2
> [INFO] Executed tasks
> [INFO] [antrun:run {execution: e1}]
> [INFO] Executing tasks
> [echo] ant e1
> [INFO] Executed tasks
> [INFO] [antrun:run {execution: e2}]
> [INFO] Executing tasks
> [echo] ant e2
> help:effective-pom shows the merged pom at the child with merge but duplicated antrun plugin declaration
> ...
> <plugins>
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>e1</id>
> <phase>generate-sources</phase>
> <goals>
> <goal>run</goal>
> </goals>
> <configuration>
> <tasks>
> <echo message="ant e1"></echo>
> </tasks>
> </configuration>
> </execution>
> <execution>
> <id>e2</id>
> <phase>generate-sources</phase>
> <goals>
> <goal>run</goal>
> </goals>
> <configuration>
> <tasks>
> <echo message="ant e2"></echo>
> </tasks>
> </configuration>
> </execution>
> </executions>
> </plugin>
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>e1</id>
> <phase>generate-sources</phase>
> <goals>
> <goal>run</goal>
> </goals>
> <configuration>
> <tasks>
> <echo message="ant e1"></echo>
> </tasks>
> </configuration>
> </execution>
> <execution>
> <id>e2</id>
> <phase>generate-sources</phase>
> <goals>
> <goal>run</goal>
> </goals>
> <configuration>
> <tasks>
> <echo message="ant e2"></echo>
> </tasks>
> </configuration>
> </execution>
> </executions>
> </plugin>
> ..
> Attached please find
> . *.zip has a sample parent/child example, you can go to child1 and do
> mvn compile
> . epom.xml is the output of 'mvn help:effective-pom' for the child project
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (MANTRUN-57) merge issue from parent causing
executions to be run multiple times
Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MANTRUN-57?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carlos Sanchez closed MANTRUN-57.
---------------------------------
Assignee: Carlos Sanchez
Resolution: Duplicate
Fix Version/s: (was: 1.2)
seems its a duplicate
> merge issue from parent causing executions to be run multiple times
> -------------------------------------------------------------------
>
> Key: MANTRUN-57
> URL: http://jira.codehaus.org/browse/MANTRUN-57
> Project: Maven 2.x Antrun Plugin
> Issue Type: Bug
> Affects Versions: 1.1
> Environment: Linux Fedora Core 5, SUN JDK 1.5
> Reporter: Hung Le
> Assignee: Carlos Sanchez
> Attachments: antrun-testcase.zip, epom.xml
>
>
> Has parent/child project
> parent
> child1
> in parent's pom.xml, define a "run"
> <build>
> <plugins>
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>e1</id>
> <phase>generate-sources</phase>
> <configuration>
> <tasks>
> <echo message="ant e1" />
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
> In child,'s pom.xml, define another "run"
> <build>
> <plugins>
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>e2</id>
> <phase>generate-sources</phase>
> <configuration>
> <tasks>
> <echo message="ant e2" />
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
> Expect the two declaration to be merged so that during the generate-sources phase for the child I will see
> ant e1
> ant e2
> what happens right now
> [INFO] [antrun:run {execution: e1}]
> [INFO] Executing tasks
> [echo] ant e1
> [INFO] Executed tasks
> [INFO] [antrun:run {execution: e2}]
> [INFO] Executing tasks
> [echo] ant e2
> [INFO] Executed tasks
> [INFO] [antrun:run {execution: e1}]
> [INFO] Executing tasks
> [echo] ant e1
> [INFO] Executed tasks
> [INFO] [antrun:run {execution: e2}]
> [INFO] Executing tasks
> [echo] ant e2
> help:effective-pom shows the merged pom at the child with merge but duplicated antrun plugin declaration
> ...
> <plugins>
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>e1</id>
> <phase>generate-sources</phase>
> <goals>
> <goal>run</goal>
> </goals>
> <configuration>
> <tasks>
> <echo message="ant e1"></echo>
> </tasks>
> </configuration>
> </execution>
> <execution>
> <id>e2</id>
> <phase>generate-sources</phase>
> <goals>
> <goal>run</goal>
> </goals>
> <configuration>
> <tasks>
> <echo message="ant e2"></echo>
> </tasks>
> </configuration>
> </execution>
> </executions>
> </plugin>
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>e1</id>
> <phase>generate-sources</phase>
> <goals>
> <goal>run</goal>
> </goals>
> <configuration>
> <tasks>
> <echo message="ant e1"></echo>
> </tasks>
> </configuration>
> </execution>
> <execution>
> <id>e2</id>
> <phase>generate-sources</phase>
> <goals>
> <goal>run</goal>
> </goals>
> <configuration>
> <tasks>
> <echo message="ant e2"></echo>
> </tasks>
> </configuration>
> </execution>
> </executions>
> </plugin>
> ..
> Attached please find
> . *.zip has a sample parent/child example, you can go to child1 and do
> mvn compile
> . epom.xml is the output of 'mvn help:effective-pom' for the child project
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira