Hi,
I'm building a custom Maven plugin. I want one configuration field to be
required, so in my Mojo I have ...
/**
* @goal seleniumtest
*/
public class SeleniumTestMojo extends AbstractMojo {
...
/**
* @required
*/
private String emailFrom;
However when I include a configuration that doesn't contain an "<emailFrom>"
element, my execution doesn't die (I would expect an error because the
element is required). Am I annotating my field correctly? I have also
tried
/**
* @parameter
* @required
*/
private String emailFrom;
to no avail. Thanks, - Dave
--
View this message in context:
http://old.nabble.com/%40required-annotation-not-taking-effect-in-my-Mojo-tp32251321p32251321.html
Sent from the mojo - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email