jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2 & 3
  • MNG-2784

Multiple executions of the same plugin at the same life cycle phase in a multi-module profile mixed up

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 2.0.4, 2.0.5
  • Fix Version/s: 2.0.7
  • Component/s: Bootstrap & Build, Plugins and Lifecycle, Profiles, Reactor and workspace
  • Labels:
    None
  • Complexity:
    Intermediate
  • Patch Submitted:
    Yes

Description

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.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    MNG-2784.patch
    19/Feb/07 8:24 AM
    1 kB
    Maik Ebert
  2. GZip Archive
    MNG-2784-issue-with-maven-2.0.9.tar.gz
    14/Aug/08 3:55 PM
    117 kB
    Gary S. Weaver

Issue Links

is related to

Bug - A problem which impairs or prevents the functions of the product. MNG-3719 [regression] plugin execution ordering no longer POM ordered in 2.0.9

  • Critical - Crashes, loss of data, severe memory leak.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
relates to

Bug - A problem which impairs or prevents the functions of the product. MNG-2258 Wrong execution order of plugins in same phase

  • Blocker - Blocks development and/or testing work, production could not run
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Maik Ebert added a comment - 18/Jan/07 7:59 AM

Maybe MNG-2784 does not fix this special configuration.

Show
Maik Ebert added a comment - 18/Jan/07 7:59 AM Maybe MNG-2784 does not fix this special configuration.
Hide
Permalink
Maik Ebert added a comment - 19/Feb/07 8:20 AM

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().

Show
Maik Ebert added a comment - 19/Feb/07 8:20 AM 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().
Hide
Permalink
Maik Ebert added a comment - 19/Feb/07 8:24 AM

I added the patch file.

Show
Maik Ebert added a comment - 19/Feb/07 8:24 AM I added the patch file.
Hide
Permalink
Maik Ebert added a comment - 13/Apr/07 8:11 AM

This issue still exists in Maven 2.0.6.

Show
Maik Ebert added a comment - 13/Apr/07 8:11 AM This issue still exists in Maven 2.0.6.
Hide
Permalink
Gary S. Weaver added a comment - 14/Aug/08 3:55 PM

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!

Show
Gary S. Weaver added a comment - 14/Aug/08 3:55 PM 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!
Hide
Permalink
Gary S. Weaver added a comment - 15/Aug/08 1:15 PM

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")

Show
Gary S. Weaver added a comment - 15/Aug/08 1:15 PM 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")

People

  • Assignee:
    Jason van Zyl
    Reporter:
    Maik Ebert
Vote (0)
Watch (4)

Dates

  • Created:
    18/Jan/07 7:57 AM
    Updated:
    22/Dec/08 1:05 AM
    Resolved:
    01/Jun/07 3:36 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.