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

ModelUtils.clone doesn't clone plugin entries where inherited == false

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.10
    • 3.0-beta-1
    • POM
    • None

    Description

      ModelUtils.clone(..) uses the ModelInheritanceAssembler under the covers, with assembleAsInheritance == true. This is not strictly true, since inheritance semantics are different in some ways from clone semantics.

      This becomes an issue where plugins are concerned, especially when the plugin entry in the POM contains inherited == "false", which will lead to the cloning process excluding that plugin from the clone result.

      Attachments

        1. ModelUtilsTest.patch
          2 kB
          John Dennis Casey

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              jdcasey John Dennis Casey
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: