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

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development