maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stuart McCulloch <mccu...@gmail.com>
Subject Re: Strange Array configuration for plugin params
Date Fri, 14 Feb 2014 00:49:29 GMT
On 13 Feb 2014, at 17:46, Dan Tran <dantran@gmail.com> wrote:

> A contributor for MOJO-2006 [1] uses array configuration at
> 
> http://maven.apache.org/guides/plugin/guide-java-plugin-development.html (
> array session)
> 
> here is the text
> 
>    /**
>     * My List.
>     */
>    @Parameter
>    private List myList;
> 
> <myList>
>  <param>value1</param>
>  <param>value2</param>
> </myList>
> 
> For details on the mapping of the individual collection elements, see Mapping
> Lists<http://maven.apache.org/guides/mini/guide-configuring-plugins.html#Mapping_Lists>.
> 
> However if you drill down to 'Mapping Lists' it has the usual configuration
> that we are custom-ed to
> 
>  <animals>
>    <animal>cat</animal>
>    <animal>dog</animal>
>    <animal>aardvark</animal>
>   </animals>
> 
> is it there by accident? or the plugin api support both format?

Both formats are supported.

> Thanks
> 
> [1] https://jira.codehaus.org/browse/MOJO-2006


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message