David wrote:
Hmm, yes they have default values - so the user doesn't have to do
anything - and should usually be happy with the default ones - but I
need *some* value. What is best practice?
Not sure either. The @required tag has two effects:
a) Make the parameter appear under "required parameters" on the site
b) Make Maven output a nice error message in case it's missing
For parameters that have defaults backed by the POM, i.e. that are
(hopefully) never unspecified, case b) should in practice never arise.
So personally I opt to omit @required here such that the plugin site
declares these parameters as optional and the user doesn't bother with
setting these unless he doesn't like the defaults.
Benjamin
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email