Maven 2 & 3

plugin execution in a profile

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0, 2.0.1
  • Fix Version/s: 2.0.5
  • Component/s: POM
  • Labels:
    None
  • Complexity:
    Intermediate
  • Number of attachments :
    1

Description

If there are multiple plugins declared in the same phase in a profile,
they do not execute in the order they appear in the pom.xml

(similar to MNG1499)

Issue Links

Activity

Hide
Andreas Zschorn added a comment -

The attached patch fixes this problem. Solution is the same like in MNG-1499.
Instead of keeping the list of the children plugins in a map, it keeps the list in a List.
(It still uses the maps to make sure plugins are only executed once if mentioned in both parent and child.)

Show
Andreas Zschorn added a comment - The attached patch fixes this problem. Solution is the same like in MNG-1499. Instead of keeping the list of the children plugins in a map, it keeps the list in a List. (It still uses the maps to make sure plugins are only executed once if mentioned in both parent and child.)
Hide
Andreas Zschorn added a comment -

I forget to mention affected version is also 2.1

Show
Andreas Zschorn added a comment - I forget to mention affected version is also 2.1
Hide
John Casey added a comment -

Added code to address plugin ordering both in profile injection and in POM inheritance, to make results consistent. Also added unit tests, and ordering is described in javadoc comments on ModelUtils and DefaultProfileInjector (these need to be added to any eventual documentation on plugin configuration).

Show
John Casey added a comment - Added code to address plugin ordering both in profile injection and in POM inheritance, to make results consistent. Also added unit tests, and ordering is described in javadoc comments on ModelUtils and DefaultProfileInjector (these need to be added to any eventual documentation on plugin configuration).

People

Vote (2)
Watch (4)

Dates

  • Created:
    Updated:
    Resolved: