You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Karl Heinz Marbaise <kh...@gmx.de> on 2014/07/16 15:10:15 UTC

DefaultValues for parameters (List)

Hi,

currently i found an issue which i want to know if it's a know issue or 
a misunderstanding on my site:

I have tried to change the code from the following:

@Parameter
private List<String> pomIncludes = Collections.singletonList( "*/pom.xml" );


into the following:

     @Parameter( defaultValue = "*/pom.xml" )
     private List<String> pomIncludes;

which results in having problems to let the value being set by the pom file:

   <pomIncludes>
     <pomInclude>whatEver</pomInclude>
   </pomIncludes>

Is there a problem know in relationship with Lists in parameters via 
annotations? I can't see the setted values during the execution via mvn 
-X ...


If i change back to the original it will work as expected (or to be more 
accurate the integration tests are working) which is in my opinion 
against the idea of the annotations to show the default values.


Kind regards
Karl-Heinz Marbaise

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


Re: DefaultValues for parameters (List)

Posted by Karl Heinz Marbaise <kh...@gmx.de>.
Hi Igor,


 > I debugged it some time ago and I think there is a bug with default
> values of List parameters. I didn't have time to fix it though.

So in other words it's a know issue...

Just want to know it...

No problem at the moment...

Kind regards
Karl-Heinz
>
> --
> Regards,
> Igor
>
> On 2014-07-16, 17:10, Karl Heinz Marbaise wrote:
>> Hi,
>>
>> currently i found an issue which i want to know if it's a know issue or
>> a misunderstanding on my site:
>>
>> I have tried to change the code from the following:
>>
>> @Parameter
>> private List<String> pomIncludes = Collections.singletonList(
>> "*/pom.xml" );
>>
>>
>> into the following:
>>
>>      @Parameter( defaultValue = "*/pom.xml" )
>>      private List<String> pomIncludes;
>>
>> which results in having problems to let the value being set by the pom
>> file:
>>
>>    <pomIncludes>
>>      <pomInclude>whatEver</pomInclude>
>>    </pomIncludes>
>>
>> Is there a problem know in relationship with Lists in parameters via
>> annotations? I can't see the setted values during the execution via mvn
>> -X ...
>>
>>
>> If i change back to the original it will work as expected (or to be more
>> accurate the integration tests are working) which is in my opinion
>> against the idea of the annotations to show the default values.
>>

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


Re: DefaultValues for parameters (List)

Posted by Igor Fedorenko <ig...@ifedorenko.com>.
I debugged it some time ago and I think there is a bug with default
values of List parameters. I didn't have time to fix it though.

--
Regards,
Igor

On 2014-07-16, 17:10, Karl Heinz Marbaise wrote:
> Hi,
>
> currently i found an issue which i want to know if it's a know issue or
> a misunderstanding on my site:
>
> I have tried to change the code from the following:
>
> @Parameter
> private List<String> pomIncludes = Collections.singletonList(
> "*/pom.xml" );
>
>
> into the following:
>
>      @Parameter( defaultValue = "*/pom.xml" )
>      private List<String> pomIncludes;
>
> which results in having problems to let the value being set by the pom
> file:
>
>    <pomIncludes>
>      <pomInclude>whatEver</pomInclude>
>    </pomIncludes>
>
> Is there a problem know in relationship with Lists in parameters via
> annotations? I can't see the setted values during the execution via mvn
> -X ...
>
>
> If i change back to the original it will work as expected (or to be more
> accurate the integration tests are working) which is in my opinion
> against the idea of the annotations to show the default values.
>
>
> Kind regards
> Karl-Heinz Marbaise
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>

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