Are you saying this is a regression or has always been a problem? We
need to decide whether this blocks the 2.0.2 release.
- Brett
Pablo wrote:
> Hello there
>
> I think there is a problem in plugin configuration.
>
> Let's say there is a field in a Mojo of type List:
>
> private List elements
>
> If the field doesn't have the attribute @parameter expression="${something}
> than putting into <configuration> in pom.xml:
> <elements>
> <element>sth1</element>
> <element>sth2</element>
> </elements>
> sets the field with the given values. And this is correct.
>
> If the field has @parameter expression="${something} but ${something} is
> empty (there are no elements) in the given phase then List elements is
> also correctly populated with values set in <elements>.
>
> If the field has @parameter expression="${something} (i.e.
> project.testCompileSourceRoots) and it evalueates to some real values
> than <elements> set in configuration are completely ignored.
> Therefore there is no way to override the default value in such case.
>
> This misbehavior is present for fields of List type. Don't know about
> other complex types like Map because I didn't needed it and didn't tested.
>
> I'm using 2.1-SNAPSHOT version of maven if it helps.
>
> Cheers
> Pablo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]