Maven
  1. Maven
  2. MNG-5246

Allow <classifier> inside <plugin> element

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Incomplete
    • Affects Version/s: 3.0.4
    • Fix Version/s: None
    • Component/s: Plugins and Lifecycle
    • Labels:
      None
    • Environment:
      All

      Description

      In the current Maven project descriptor (http://maven.apache.org/ref/3.0.4/maven-model/maven.html), plugins are declared inside <build> elements by specifying the <groupId>, <artifactId> and <version> elements. However the <classifier> element is currently not legal for a plugin. I would like <classifier> to be legal for plugins, like any other dependencies.

      Use case: I maintain two branches for my project: a development branch on JDK7, and a branch ported to JDK6. I use custom Maven plugins for my build process. However the JDK7 doclet API seems to have some incompatible changes compared to the JDK6 doclet API. In addition some APT (Annotation Processing Tools) API are being removed from JDK8, since they are now merged with the javac API. For various reasons (may also be reasons specific to my projects), I wish slightly different Maven plugins depending if I'm building my JDK6 branch or my JDK7 branch. I would like to simply use my custom Maven plugins with the same classifier than the project I'm building, but this is currently not possible.

        Activity

        Martin Desruisseaux created issue -
        Show
        Jason van Zyl added a comment - Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014
        Hide
        Jason van Zyl added a comment -

        Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.

        Show
        Jason van Zyl added a comment - Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.
        Jason van Zyl made changes -
        Field Original Value New Value
        Resolution Incomplete [ 4 ]
        Status Open [ 1 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
        Mark Thomas made changes -
        Workflow jira [ 12715468 ] Default workflow, editable Closed status [ 12755003 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
        Mark Thomas made changes -
        Workflow jira [ 12952808 ] Default workflow, editable Closed status [ 12990145 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        707d 6h 47m 1 Jason van Zyl 22/Jan/14 20:31

          People

          • Assignee:
            Unassigned
            Reporter:
            Martin Desruisseaux
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development