I'm creating a new plugin where i would like the to have "embedded"
configuration.
public abstract class MyAbstractMojo extends AbstractMojo {
@Parameter
private Embedded embedded;
Where the ”embedded" configuration pojo has property injection with default
values.
@Named
public class Embedded {
@Parameter(property=“embedded.name", defaultValue= "default")
private String name;
@Parameter(property=“embedded.autoCreate", defaultValue= "false")
private Boolean autoCreate;
I expect the configuration xml would look like:
<plugin>
<groupId>my-group/groupId>
<artifactId>my-artifact</artifactId>
<version>${my.version}</version>
<configuration>
<embedded>
<autoCreate>true</autoCreate>
</embedded>
I have been unsuccessful in getting the property injection or default values to
work. Should
this work? What am I missing?
thanks,
chas