Maven
  1. Maven
  2. MNG-4919

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

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.0.2
    • Component/s: Plugins and Lifecycle, POM
    • Labels:
      None
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      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.

        Issue Links

          Activity

          Benjamin Bentmann made changes -
          Field Original Value New Value
          Link This issue is related to MNG-3203 [ MNG-3203 ]
          Hide
          Benjamin Bentmann added a comment -

          Fixed in r1055486 by making implied execution ids are unique via index, default-goal, default-goal-1, etc.

          Show
          Benjamin Bentmann added a comment - Fixed in r1055486 by making implied execution ids are unique via index, default-goal , default-goal-1 , etc.
          Benjamin Bentmann made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Assignee Benjamin Bentmann [ bentmann ]
          Fix Version/s 3.0.2 [ 16952 ]
          Resolution Fixed [ 1 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: