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

[RFC] POM using attributes for plugin definitions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Do
    • None
    • None
    • FDPFC
    • 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

              Unassigned Unassigned
              khmarbaise Karl Heinz Marbaise
              Votes:
              5 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: