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

Plugin execution contributed by lifecycle mapping gets lost when same goal is bound multiple times

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.1
    • 3.0.2
    • Plugins and Lifecycle, POM
    • None

    Description

      When a plugin goal is implicitly bound twice from lifecycle mappings, the two goal executions get the same id and clash. This clash can eventually lead to all but one goal execution being lost (during model merging).

      Originally reported as TYCHO-546 where org.apache.maven.plugins:maven-clean-plugin:clean is bound once for the clean lifecycle (from Maven core) and once for the default lifecycle (from the build extension), both times using the execution id default-clean.

      Attachments

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              bentmann Benjamin Bentmann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: