[ 
https://jira.codehaus.org/browse/MPLUGIN-271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=354638#comment-354638
 ] 

Karl-Heinz Marbaise commented on MPLUGIN-271:
---------------------------------------------

Hm..what about to enhance the annotation like this:
{code:java}
@Parameter ( defaultValues = { "First", "Second" } )
private List<String> numberWords;
{code}
and for the command line i would suggest to do it like this:
{code}
mvn -DtheNameOfTheProperty={"First","Second"} clean package
{code}
And you are right works only for primites with single String constructor.

> Usage of defaultValues for a List<..> Parameter seemed not to be working
> ------------------------------------------------------------------------
>
>                 Key: MPLUGIN-271
>                 URL: https://jira.codehaus.org/browse/MPLUGIN-271
>             Project: Maven Plugin Tools
>          Issue Type: Bug
>          Components: maven-plugin-annotations
>    Affects Versions: 3.3
>            Reporter: Karl-Heinz Marbaise
>            Priority: Critical
>
> Currently the following seemed to be not working:
> {code:java}
>     @Parameter( defaultValue = "*/pom.xml" )
>     private List<String> pomIncludes;
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to