[ 
http://jira.codehaus.org/browse/MNG-4997?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin Bentmann closed MNG-4997.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0
         Assignee: Benjamin Bentmann

> Plugin @Parameter alias does not work for complex parameter types
> -----------------------------------------------------------------
>
>                 Key: MNG-4997
>                 URL: http://jira.codehaus.org/browse/MNG-4997
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Plugin API
>    Affects Versions: 2.2.1
>            Reporter: Gili
>            Assignee: Benjamin Bentmann
>             Fix For: 3.0
>
>
> 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>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to