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

Allow to condense configuration of plugin parameter beans that commonly require only one value

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.2
    • Fix Version/s: 3.0.3
    • Component/s: Plugins and Lifecycle, POM
    • Labels:
      None

      Description

      Let's take this example configuration snippet:

      <resources>
        <resource>
          <directory>src/foo</directory>
          <filtering>true</filtering>
        </resource>
        <resource>src/bar</resource>
      </resources>
      

      Apparently, the last <resource> element is meant as a shorthand form for <resource><directory>src/bar</directory></resource>.

      Not only does support for this notation save users a few bits of (sometimes hated) XML but it also provides plugin authors with a smooth upgrade path say when a parameter was initially typed as File[] but later needs to be extended into Bean[].

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bentmann Benjamin Bentmann
                Reporter:
                bentmann Benjamin Bentmann
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: