Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4023

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bentmann Benjamin Bentmann
                Reporter:
                bentmann Benjamin Bentmann
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: