Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5653

[RFC] POM using attributes for plugin definitions

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: FDPFC
    • Labels:
      None

      Description

      <plugins>
        <plugin groupId="org.apache.maven.plugins" artifactId="maven-compiler-plugin" version="3.1"/>
        ...
      </plugins>
      

      Or configuration for a plugin:

      <plugins>
        <plugin groupId="org.apache.maven.plugins" artifactId="maven-compiler-plugin" version="3.1">
          <configuration>
           ....
         </configuration>
       </plugin>
        ...
      </plugins>
      

      Based on the above a pluginManagement block (if it will continue to exist) would be come very short:

      <build>
        <pluginManagement>
          <plugins>
            <plugin id="maven-compiler-plugin:3.1"/>
            <plugin id="maven-resources-plugin:2.6"/>
            <plugin id="maven-ear-plugin:2.4"/>
            ...
          <plugins>
        </pluginManagement>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                khmarbaise Karl Heinz Marbaise
              • Votes:
                5 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: