You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Maik Ebert (JIRA)" <ji...@codehaus.org> on 2007/01/18 14:58:09 UTC
[jira] Created: (MNG-2784) Multiple executions of the same plugin
at the same life cycle phase in a multi-module profile mixed up
Multiple executions of the same plugin at the same life cycle phase in a multi-module profile mixed up
------------------------------------------------------------------------------------------------------
Key: MNG-2784
URL: http://jira.codehaus.org/browse/MNG-2784
Project: Maven 2
Issue Type: Bug
Components: Bootstrap & Build, Plugins and Lifecycle, Profiles, Reactor and workspace
Affects Versions: 2.0.4, 2.0.5
Reporter: Maik Ebert
Priority: Critical
I use the latest Maven 2.0.5 build found at
http://people.apache.org/~jvanzyl/maven-2.0.5/org/apache/maven/maven-core/2.0.5/
I have multiple executions of the same plugin at the same life cycle phase in a multi-module parent POM. There was a bug regarding the order of this executions. This was fixed at 2.0.5.
Now I needed to extract these plugin executions to a profile in this parent POM. Now the executions are not ordered correctly anymore :-(
Before (works fine):
parent\pom.xml <= multiple executions of the same plugin at the same life
cycle phase in the default build element
parent \child1\pom.xml
parent \child2\pom.xml
Calling mvn install in parent works fine.
After (fails):
parent\pom.xml <= multiple executions of the same plugin at the same life
cycle phase in the build element of a profile
parent \child1\pom.xml
parent \child2\pom.xml
Calling mvn install in parent mixed up the execution order in the childs.
--
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: (MNG-2784) Multiple executions of the same plugin
at the same life cycle phase in a multi-module profile mixed up
Posted by "Maik Ebert (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2784?page=comments#action_85357 ]
Maik Ebert commented on MNG-2784:
---------------------------------
Maybe MNG-2784 does not fix this special configuration.
> Multiple executions of the same plugin at the same life cycle phase in a multi-module profile mixed up
> ------------------------------------------------------------------------------------------------------
>
> Key: MNG-2784
> URL: http://jira.codehaus.org/browse/MNG-2784
> Project: Maven 2
> Issue Type: Bug
> Components: Plugins and Lifecycle, Bootstrap & Build, Reactor and workspace, Profiles
> Affects Versions: 2.0.5, 2.0.4
> Reporter: Maik Ebert
> Priority: Critical
>
> I use the latest Maven 2.0.5 build found at
> http://people.apache.org/~jvanzyl/maven-2.0.5/org/apache/maven/maven-core/2.0.5/
> I have multiple executions of the same plugin at the same life cycle phase in a multi-module parent POM. There was a bug regarding the order of this executions. This was fixed at 2.0.5.
> Now I needed to extract these plugin executions to a profile in this parent POM. Now the executions are not ordered correctly anymore :-(
> Before (works fine):
> parent\pom.xml <= multiple executions of the same plugin at the same life
> cycle phase in the default build element
> parent \child1\pom.xml
> parent \child2\pom.xml
> Calling mvn install in parent works fine.
> After (fails):
> parent\pom.xml <= multiple executions of the same plugin at the same life
> cycle phase in the build element of a profile
> parent \child1\pom.xml
> parent \child2\pom.xml
> Calling mvn install in parent mixed up the execution order in the childs.
--
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: (MNG-2784) Multiple executions of the same plugin
at the same life cycle phase in a multi-module profile mixed up
Posted by "Maik Ebert (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maik Ebert updated MNG-2784:
----------------------------
Attachment: MNG-2784.patch
I added the patch file.
> Multiple executions of the same plugin at the same life cycle phase in a multi-module profile mixed up
> ------------------------------------------------------------------------------------------------------
>
> Key: MNG-2784
> URL: http://jira.codehaus.org/browse/MNG-2784
> Project: Maven 2
> Issue Type: Bug
> Components: Bootstrap & Build, Plugins and Lifecycle, Profiles, Reactor and workspace
> Affects Versions: 2.0.4, 2.0.5
> Reporter: Maik Ebert
> Priority: Critical
> Attachments: MNG-2784.patch
>
>
> I use the latest Maven 2.0.5 build found at
> http://people.apache.org/~jvanzyl/maven-2.0.5/org/apache/maven/maven-core/2.0.5/
> I have multiple executions of the same plugin at the same life cycle phase in a multi-module parent POM. There was a bug regarding the order of this executions. This was fixed at 2.0.5.
> Now I needed to extract these plugin executions to a profile in this parent POM. Now the executions are not ordered correctly anymore :-(
> Before (works fine):
> parent\pom.xml <= multiple executions of the same plugin at the same life
> cycle phase in the default build element
> parent \child1\pom.xml
> parent \child2\pom.xml
> Calling mvn install in parent works fine.
> After (fails):
> parent\pom.xml <= multiple executions of the same plugin at the same life
> cycle phase in the build element of a profile
> parent \child1\pom.xml
> parent \child2\pom.xml
> Calling mvn install in parent mixed up the execution order in the childs.
--
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: (MNG-2784) Multiple executions of the same plugin
at the same life cycle phase in a multi-module profile mixed up
Posted by "Gary S. Weaver (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=145198#action_145198 ]
Gary S. Weaver commented on MNG-2784:
-------------------------------------
Nevermind attachment MNG-2784-issue-with-maven-2.0.9.tar.gz and my comment - I created another bug: MNG-3719 ("Need to have a way to either define plugin execution dependencies on other plugin executions having executed first (at least within same lifecycle phase")
> Multiple executions of the same plugin at the same life cycle phase in a multi-module profile mixed up
> ------------------------------------------------------------------------------------------------------
>
> Key: MNG-2784
> URL: http://jira.codehaus.org/browse/MNG-2784
> Project: Maven 2
> Issue Type: Bug
> Components: Bootstrap & Build, Plugins and Lifecycle, Profiles, Reactor and workspace
> Affects Versions: 2.0.4, 2.0.5
> Reporter: Maik Ebert
> Assignee: Jason van Zyl
> Priority: Critical
> Fix For: 2.0.7
>
> Attachments: MNG-2784-issue-with-maven-2.0.9.tar.gz, MNG-2784.patch
>
>
> I use the latest Maven 2.0.5 build found at
> http://people.apache.org/~jvanzyl/maven-2.0.5/org/apache/maven/maven-core/2.0.5/
> I have multiple executions of the same plugin at the same life cycle phase in a multi-module parent POM. There was a bug regarding the order of this executions. This was fixed at 2.0.5.
> Now I needed to extract these plugin executions to a profile in this parent POM. Now the executions are not ordered correctly anymore :-(
> Before (works fine):
> parent\pom.xml <= multiple executions of the same plugin at the same life
> cycle phase in the default build element
> parent \child1\pom.xml
> parent \child2\pom.xml
> Calling mvn install in parent works fine.
> After (fails):
> parent\pom.xml <= multiple executions of the same plugin at the same life
> cycle phase in the build element of a profile
> parent \child1\pom.xml
> parent \child2\pom.xml
> Calling mvn install in parent mixed up the execution order in the childs.
--
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: (MNG-2784) Multiple executions of the same plugin at
the same life cycle phase in a multi-module profile mixed up
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Casey closed MNG-2784.
---------------------------
Resolution: Fixed
> Multiple executions of the same plugin at the same life cycle phase in a multi-module profile mixed up
> ------------------------------------------------------------------------------------------------------
>
> Key: MNG-2784
> URL: http://jira.codehaus.org/browse/MNG-2784
> Project: Maven 2
> Issue Type: Bug
> Components: Bootstrap & Build, Plugins and Lifecycle, Profiles, Reactor and workspace
> Affects Versions: 2.0.4, 2.0.5
> Reporter: Maik Ebert
> Assignee: Jason van Zyl
> Priority: Critical
> Fix For: 2.0.7
>
> Attachments: MNG-2784.patch
>
>
> I use the latest Maven 2.0.5 build found at
> http://people.apache.org/~jvanzyl/maven-2.0.5/org/apache/maven/maven-core/2.0.5/
> I have multiple executions of the same plugin at the same life cycle phase in a multi-module parent POM. There was a bug regarding the order of this executions. This was fixed at 2.0.5.
> Now I needed to extract these plugin executions to a profile in this parent POM. Now the executions are not ordered correctly anymore :-(
> Before (works fine):
> parent\pom.xml <= multiple executions of the same plugin at the same life
> cycle phase in the default build element
> parent \child1\pom.xml
> parent \child2\pom.xml
> Calling mvn install in parent works fine.
> After (fails):
> parent\pom.xml <= multiple executions of the same plugin at the same life
> cycle phase in the build element of a profile
> parent \child1\pom.xml
> parent \child2\pom.xml
> Calling mvn install in parent mixed up the execution order in the childs.
--
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: (MNG-2784) Multiple executions of the same plugin
at the same life cycle phase in a multi-module profile mixed up
Posted by "Maik Ebert (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_92850 ]
Maik Ebert commented on MNG-2784:
---------------------------------
This issue still exists in Maven 2.0.6.
> Multiple executions of the same plugin at the same life cycle phase in a multi-module profile mixed up
> ------------------------------------------------------------------------------------------------------
>
> Key: MNG-2784
> URL: http://jira.codehaus.org/browse/MNG-2784
> Project: Maven 2
> Issue Type: Bug
> Components: Bootstrap & Build, Plugins and Lifecycle, Profiles, Reactor and workspace
> Affects Versions: 2.0.4, 2.0.5
> Reporter: Maik Ebert
> Priority: Critical
> Attachments: MNG-2784.patch
>
>
> I use the latest Maven 2.0.5 build found at
> http://people.apache.org/~jvanzyl/maven-2.0.5/org/apache/maven/maven-core/2.0.5/
> I have multiple executions of the same plugin at the same life cycle phase in a multi-module parent POM. There was a bug regarding the order of this executions. This was fixed at 2.0.5.
> Now I needed to extract these plugin executions to a profile in this parent POM. Now the executions are not ordered correctly anymore :-(
> Before (works fine):
> parent\pom.xml <= multiple executions of the same plugin at the same life
> cycle phase in the default build element
> parent \child1\pom.xml
> parent \child2\pom.xml
> Calling mvn install in parent works fine.
> After (fails):
> parent\pom.xml <= multiple executions of the same plugin at the same life
> cycle phase in the build element of a profile
> parent \child1\pom.xml
> parent \child2\pom.xml
> Calling mvn install in parent mixed up the execution order in the childs.
--
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: (MNG-2784) Multiple executions of the same plugin
at the same life cycle phase in a multi-module profile mixed up
Posted by "Maik Ebert (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_87940 ]
Maik Ebert commented on MNG-2784:
---------------------------------
I digged further into this problem.
MNG-1891 does fix some of these problems, but there is still the following problem:
The order of executions of a plugin in a profile are disarranged when they are merged into a model.
I patched Maven 2.0.5 to fix this issue. It added some reordering in DefaultProfileInjector.injectPluginDefinition().
> Multiple executions of the same plugin at the same life cycle phase in a multi-module profile mixed up
> ------------------------------------------------------------------------------------------------------
>
> Key: MNG-2784
> URL: http://jira.codehaus.org/browse/MNG-2784
> Project: Maven 2
> Issue Type: Bug
> Components: Bootstrap & Build, Plugins and Lifecycle, Profiles, Reactor and workspace
> Affects Versions: 2.0.4, 2.0.5
> Reporter: Maik Ebert
> Priority: Critical
>
> I use the latest Maven 2.0.5 build found at
> http://people.apache.org/~jvanzyl/maven-2.0.5/org/apache/maven/maven-core/2.0.5/
> I have multiple executions of the same plugin at the same life cycle phase in a multi-module parent POM. There was a bug regarding the order of this executions. This was fixed at 2.0.5.
> Now I needed to extract these plugin executions to a profile in this parent POM. Now the executions are not ordered correctly anymore :-(
> Before (works fine):
> parent\pom.xml <= multiple executions of the same plugin at the same life
> cycle phase in the default build element
> parent \child1\pom.xml
> parent \child2\pom.xml
> Calling mvn install in parent works fine.
> After (fails):
> parent\pom.xml <= multiple executions of the same plugin at the same life
> cycle phase in the build element of a profile
> parent \child1\pom.xml
> parent \child2\pom.xml
> Calling mvn install in parent mixed up the execution order in the childs.
--
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: (MNG-2784) Multiple executions of the same plugin
at the same life cycle phase in a multi-module profile mixed up
Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason van Zyl updated MNG-2784:
-------------------------------
Fix Version/s: 2.0.7
> Multiple executions of the same plugin at the same life cycle phase in a multi-module profile mixed up
> ------------------------------------------------------------------------------------------------------
>
> Key: MNG-2784
> URL: http://jira.codehaus.org/browse/MNG-2784
> Project: Maven 2
> Issue Type: Bug
> Components: Bootstrap & Build, Plugins and Lifecycle, Profiles, Reactor and workspace
> Affects Versions: 2.0.4, 2.0.5
> Reporter: Maik Ebert
> Assignee: Jason van Zyl
> Priority: Critical
> Fix For: 2.0.7
>
> Attachments: MNG-2784.patch
>
>
> I use the latest Maven 2.0.5 build found at
> http://people.apache.org/~jvanzyl/maven-2.0.5/org/apache/maven/maven-core/2.0.5/
> I have multiple executions of the same plugin at the same life cycle phase in a multi-module parent POM. There was a bug regarding the order of this executions. This was fixed at 2.0.5.
> Now I needed to extract these plugin executions to a profile in this parent POM. Now the executions are not ordered correctly anymore :-(
> Before (works fine):
> parent\pom.xml <= multiple executions of the same plugin at the same life
> cycle phase in the default build element
> parent \child1\pom.xml
> parent \child2\pom.xml
> Calling mvn install in parent works fine.
> After (fails):
> parent\pom.xml <= multiple executions of the same plugin at the same life
> cycle phase in the build element of a profile
> parent \child1\pom.xml
> parent \child2\pom.xml
> Calling mvn install in parent mixed up the execution order in the childs.
--
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: (MNG-2784) Multiple executions of the same plugin
at the same life cycle phase in a multi-module profile mixed up
Posted by "Gary S. Weaver (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary S. Weaver updated MNG-2784:
--------------------------------
Attachment: MNG-2784-issue-with-maven-2.0.9.tar.gz
Attaching a project that gives example of mix of different and same plugin with different execution ids in same phase not being executed in order that they appear in pom.xml (and it isn't in reverse order either).
Could this issue please be re-opened or explanation given for whether this will be fixed? The other bug referenced was supposedly fixed in 2.0.7, but I am seeing this behavior in 2.0.9.
Thanks in advance for your help!
> Multiple executions of the same plugin at the same life cycle phase in a multi-module profile mixed up
> ------------------------------------------------------------------------------------------------------
>
> Key: MNG-2784
> URL: http://jira.codehaus.org/browse/MNG-2784
> Project: Maven 2
> Issue Type: Bug
> Components: Bootstrap & Build, Plugins and Lifecycle, Profiles, Reactor and workspace
> Affects Versions: 2.0.4, 2.0.5
> Reporter: Maik Ebert
> Assignee: Jason van Zyl
> Priority: Critical
> Fix For: 2.0.7
>
> Attachments: MNG-2784-issue-with-maven-2.0.9.tar.gz, MNG-2784.patch
>
>
> I use the latest Maven 2.0.5 build found at
> http://people.apache.org/~jvanzyl/maven-2.0.5/org/apache/maven/maven-core/2.0.5/
> I have multiple executions of the same plugin at the same life cycle phase in a multi-module parent POM. There was a bug regarding the order of this executions. This was fixed at 2.0.5.
> Now I needed to extract these plugin executions to a profile in this parent POM. Now the executions are not ordered correctly anymore :-(
> Before (works fine):
> parent\pom.xml <= multiple executions of the same plugin at the same life
> cycle phase in the default build element
> parent \child1\pom.xml
> parent \child2\pom.xml
> Calling mvn install in parent works fine.
> After (fails):
> parent\pom.xml <= multiple executions of the same plugin at the same life
> cycle phase in the build element of a profile
> parent \child1\pom.xml
> parent \child2\pom.xml
> Calling mvn install in parent mixed up the execution order in the childs.
--
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