You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Dan Tran <da...@gmail.com> on 2014/02/13 18:46:34 UTC
Strange Array configuration for plugin params
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?
Thanks
[1] https://jira.codehaus.org/browse/MOJO-2006
Re: Strange Array configuration for plugin params
Posted by Dan Tran <da...@gmail.com>.
ping :-)
On Thu, Feb 13, 2014 at 9:46 AM, Dan Tran <da...@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?
>
>
> Thanks
>
>
> [1] https://jira.codehaus.org/browse/MOJO-2006
>
>
>
>
>
>
Re: Strange Array configuration for plugin params
Posted by Stuart McCulloch <mc...@gmail.com>.
On 13 Feb 2014, at 17:46, Dan Tran <da...@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