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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment