I'm not sure if a property is allowed to be an empty string. But file a bug
report and this possible issue will be on the board.

/Anders

On Thu, May 19, 2011 at 19:24, rydnr <[email protected]> wrote:

> Basically, in my tests, if a Maven plugin runs within Maven 3.0.3, and
> defines
>
> /**
>  * @parameter property="abc"
>  */
> private String somethingDifferentThanAbc;
>
> public void setAbc(String value) {
>  somethingDifferentThanAbc = value;
> }
>
> Works for non-empty values:
> <abc>abc-value</abc>
>
> But throws a NPE in
>
> org.codehaus.plexus.component.configurator.converters.ComponentValueSetter:331
> (fieldTypeConverter is null) with empty values:
>
> <abc></abc>
>
> Should I fill a bug? It works in Maven 2.x. It works if you declare the
> property with no naming conventions:
>
> private String abc;
>
> Kind regards,
> Rydnr
>

Reply via email to