Maven 2 & 3

Profiles from parent POM are injected multiple times if parent is part of reactor build

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0.9, 2.1.0-M1
  • Fix Version/s: 2.0.11, 2.1.0
  • Component/s: Profiles
  • Labels:
    None
  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

The test project provided for MNG-4022 depends on a bug in the project builder to trigger to actual Xpp3Dom merging issue. When the parent POM is part of the reactor, it will be added to the project cache and its model already includes active profiles. When the child is build next it retrieves the previously created parent model from the cache to assemble the lineage and injects the active profiles again. This causes discrepancies in the effective model if profile injection has additive effects on the model.

Issue Links

Activity

Hide
Benjamin Bentmann added a comment -

Fixed in r741777 and r741779.

Show
Benjamin Bentmann added a comment - Fixed in r741777 and r741779.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: