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

Allow to configure array-typed plugin parameters from expressions yielding collections and vice versa

    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
    • Labels:
      None

      Description

      The distinction between arrays and collections is often times more a low-tech thingy than anything else, conceptually, both types are useful to hold zero or more items. As such it would be nice if plugin authors can freely choose which type works best for their plugin parameters. E.g. many Maven APIs provide collections yet arrays currently render the nicer plugin docs (component type mentioned). Currently, this is not possible:

      /** @parameter default-value="${project.compileSourceRoots}" */
      String[] sourceRoots;
      

        Attachments

          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: