Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
When we use custom Bean as plugin parameter configuration, set method of Bean is only called for default value.
Example:
public class MyMojo extends AbstractMojo { @Parameter private Bean beanParam; }
public class Bean { private String field1; private String field2; public void set(String value) { this.field1 = value; } }
And configuration with fields name:
<configuration> <beanParam> <field1>value1</field1> <field2>value2</field2> </beanParam> </configuration>
in this case Bean.set is not called.
When we have:
<configuration> <beanParam>value</beanParam> </configuration>
Bean.set is called.
I will fix it.
Attachments
Issue Links
- relates to
-
MNG-5013 Allow to condense configuration of plugin parameter beans that commonly require only one value
- Closed
- links to