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

@required plugin parameters using default-value with expressions are not validated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.1
    • 3.0-beta-2
    • Plugins and Lifecycle
    • None

    Description

      For a mojo parameter like

      /**
       * @parameter default-value="${project.url}"
       * @required
       */
      String url
      

      Maven will not validate whether the default value actually evaluates to a non-null value.

      This is a subtle difference from

      /**
       * @parameter expression="${project.url}"
       * @required
       */
      String url
      

      where the non-null validation will be performed.

      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: