1. Maven
  2. MNG-2806

Provide a means of replacing one mojo binding with another, without knowing the location of the first binding in the lifecycle


    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: 2.0.4
    • Fix Version/s: None
    • Component/s: POM
    • Labels:


      Lifecycle phase-bindings that are inherited from parent POMs or packaging-mappings are invisible to the user, without sometimes extensive research into the POM lineage and/or the extension artifact source that brings in the packaging-mapping.

      For end users in a large development environment, it should be possible to replace an inherited mojo binding with one specified in the local POM, without needing to know what phase that binding is attached to. It is possible to see the full mojo ID and execution ID for a replacement target in the debug output of a build, but phase transitions are not logged...which makes researching the phase-location of a mojo binding quite difficult. Replacement should be available at either the execution level, or the mojo level within a specified execution.

      If replacing a mojo in the lifecycle mapping given by the project's packaging, the executionId for the replacement should be 'default'.

      This feature should be accompanied by a new mojo in the help plugin which can print out the effective build steps in that project's lifecycle, to help with debugging replacements, etc.

        Issue Links


          John Casey created issue -
          John Casey made changes -
          Field Original Value New Value
          Fix Version/s 2.1-alpha-1 [ 13143 ]
          Jason van Zyl made changes -
          Fix Version/s 2.1-alpha-1 [ 13143 ]
          Fix Version/s 2.1-alpha-2 [ 13144 ]
          John Casey made changes -
          Link This issue is depended upon by MNG-683 [ MNG-683 ]
          Jason van Zyl made changes -
          Fix Version/s 3.0 [ 13142 ]
          Fix Version/s 3.x [ 13145 ]
          Jason van Zyl made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Incomplete [ 4 ]
          Paul Benedict made changes -
          Fix Version/s Issues to be reviewed for 3.x [ 13145 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
          Mark Thomas made changes -
          Workflow jira [ 12713345 ] Default workflow, editable Closed status [ 12753189 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
          Mark Thomas made changes -
          Workflow jira [ 12952123 ] Default workflow, editable Closed status [ 12989492 ]


            • Assignee:
              John Casey
            • Votes:
              3 Vote for this issue
              5 Start watching this issue


              • Created: