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

Plugin @Parameter alias does not work for complex parameter types

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.1
    • 3.0
    • Plugin API
    • None

    Description

      It looks like MNG-674 fixed @parameter aliasing for simple types, but not for Map.

      I declare this in the plugin:

      /**

      • The environment variables.
        *
      • @parameter alias="environment"
      • @required
        */
        private Map<String, String> environmentVariables;

      and this in the POM:

      <environment>
      <FOO>bar</FOO>
      </environment>

      This fails, but using a simple type works:

      /**

      • The environment variables.
        *
      • @parameter alias="environment"
      • @required
        */
        private String environmentVariables;

      [...]

      <environment>bar</environment>

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: