Maven
  1. Maven
  2. MNG-4081

Subtle case: Avoid resolving artifacts from outside the reactor for plugins and extensions whose projects are inside the reactor

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 2.1.0-M1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      DefaultLifecycleExecutor.constructLifecycleMappings() can trigger the resolution of all the plugins declared in the project's build section. When this happens, even if those plugins are in the current reactor, that version will not be used. Instead, since those plugin artifacts haven't been built yet, the plugin will be resolved externally and bound into the plugin collector for later use. This means that even if the plugin itself isn't used until after it's build in the reactor, that version won't be used.

      I'm still investigating exactly how build extensions will interact with the reactor, but I suspect they cannot be available from the current reactor either, since build extensions are loaded up front and for the entire reactor at once. I'll post an update once I've explored that section of the code.

        Issue Links

          Activity

          John Casey created issue -
          John Casey made changes -
          Field Original Value New Value
          Link This issue is related to MNG-4075 [ MNG-4075 ]
          John Casey made changes -
          Fix Version/s 2.x [ 14504 ]
          Affects Version/s 2.1.0-M1 [ 14503 ]
          Brett Porter made changes -
          Fix Version/s 3.0-alpha-7 [ 16087 ]
          Fix Version/s 2.x [ 14504 ]
          Benjamin Bentmann made changes -
          Fix Version/s 3.0-alpha-7 [ 16087 ]
          Fix Version/s 3.0-alpha-8 [ 16088 ]
          Jason van Zyl made changes -
          Fix Version/s 3.0-alpha-8 [ 16088 ]
          Fix Version/s 3.0-beta-1 [ 16089 ]
          Benjamin Bentmann made changes -
          Link This issue is related to MNG-2135 [ MNG-2135 ]
          Benjamin Bentmann made changes -
          Link This issue is related to MNG-1911 [ MNG-1911 ]
          Benjamin Bentmann made changes -
          Assignee Benjamin Bentmann [ bentmann ]
          Resolution Duplicate [ 3 ]
          Status Open [ 1 ] Closed [ 6 ]
          Fix Version/s 3.0-beta-1 [ 16089 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
          Mark Thomas made changes -
          Workflow jira [ 12714441 ] Default workflow, editable Closed status [ 12754161 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
          Mark Thomas made changes -
          Workflow jira [ 12951037 ] Default workflow, editable Closed status [ 12987291 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development