Maven
  1. Maven
  2. MNG-980

Provide control over precedence of org.apache.maven.plugins group in search path

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta-1
    • Fix Version/s: 2.0.7
    • Component/s: Plugins and Lifecycle
    • Labels:
      None

      Description

      settings.xml has a <pluginGroups> section to list additional groupIds to search for top level m2 plugin goals.

      By default, "org.apache.maven.plugins" is not required to be present in this list, and always wins if there is a collision.

      <pluginGroups> that explicitly list "org.apache.maven.plugins" should be able to control this default behavior, so that a different plugin groupId can always win in the case of a collision.

      For example, in settings.xml:

      <pluginGroups>
      <pluginGroup>org.example.maven.plugins</pluginGroup>
      <pluginGroup>org.apache.maven.plugins</pluginGroup>
      </pluginGroups>

      This would allow "org.example.maven.plugins" to always win in the case of a collision, whereas:

      <pluginGroups>
      <pluginGroup>org.example.maven.plugins</pluginGroup>
      </pluginGroups>

      would still allow "org.apache.maven.plugins" to always win, as it does today.

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          561d 19h 11m 1 Brian Fox 07/Apr/07 18:54
          Mark Thomas made changes -
          Workflow jira [ 12951175 ] Default workflow, editable Closed status [ 12987433 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
          Mark Thomas made changes -
          Workflow jira [ 12712188 ] Default workflow, editable Closed status [ 12752142 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
          Brian Fox made changes -
          Fix Version/s 2.1.x [ 13142 ]
          Resolution Fixed [ 1 ]
          Fix Version/s 2.0.7 [ 13138 ]
          Assignee Brian Fox [ brianfox ]
          Status Open [ 1 ] Closed [ 6 ]
          Hide
          Brian E. Fox added a comment -

          This is duplicated by MNG-2926

          Show
          Brian E. Fox added a comment - This is duplicated by MNG-2926
          Brian Fox made changes -
          Link This issue is duplicated by MNG-2926 [ MNG-2926 ]
          Jason van Zyl made changes -
          Fix Version/s 2.1 [ 11704 ]
          Fix Version/s 2.1.x [ 13142 ]
          Vincent Massol made changes -
          Workflow Maven [ 39778 ] Maven New [ 47883 ]
          Hide
          Kevin McNamee added a comment -

          From working with Maven2.0 RC it seems that the <pluginGroups> are ignored altogether.
          Following the example in
          http://www.codehaus.org/~jvanzyl/maven2/guides/plugin/guide-java-plugin-development.html
          the plugin group "sample.plugin" is completely ignored in the settings.xml.

          Show
          Kevin McNamee added a comment - From working with Maven2.0 RC it seems that the <pluginGroups> are ignored altogether. Following the example in http://www.codehaus.org/~jvanzyl/maven2/guides/plugin/guide-java-plugin-development.html the plugin group "sample.plugin" is completely ignored in the settings.xml.
          Brett Porter made changes -
          Fix Version/s 2.1 [ 11704 ]
          Fix Version/s 2.0-beta-4 [ 11991 ]
          Brett Porter made changes -
          Fix Version/s 2.0-beta-3 [ 11991 ]
          Brett Porter made changes -
          Field Original Value New Value
          Component/s maven-core [ 11340 ]
          John Fallows created issue -

            People

            • Assignee:
              Brian Fox
              Reporter:
              John Fallows
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development