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

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.2
    • 3.0.3
    • Plugins and Lifecycle, POM
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: