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
    • 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

      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 created issue -
          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 -
          Assignee Benjamin Bentmann [ bentmann ]
          Status Open [ 1 ] Closed [ 6 ]
          Fix Version/s 3.0.2 [ 16952 ]
          Resolution Fixed [ 1 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
          Mark Thomas made changes -
          Workflow jira [ 12715178 ] Default workflow, editable Closed status [ 12754779 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
          Mark Thomas made changes -
          Workflow jira [ 12951512 ] Default workflow, editable Closed status [ 12987787 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          39d 18h 23m 1 Benjamin Bentmann 05/Jan/11 09:19

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development