@Documented @Retention(value=CLASS) @Target(value=FIELD) @Inherited public @interface Parameter
MavenPluginManager.getConfiguredMojo(...)
.Modifier and Type | Optional Element and Description |
---|---|
String |
alias
alias supported to get parameter value.
|
String |
defaultValue
parameter default value, eventually containing
${...} |
String |
name
name of the bean property used to get/set the field: by default, field name is used.
|
String |
property
Property to use to retrieve a value.
|
boolean |
readonly
Specifies that this parameter cannot be configured directly by the user (as in the case of POM-specified
configuration).
|
boolean |
required
is the parameter required?
|
public abstract String name
public abstract String alias
public abstract String property
-D
execution, setting properties or pom
properties.public abstract String defaultValue
${...}
expressions which will be interpreted at
inject time: see
PluginParameterExpressionEvaluator.public abstract boolean required
true
if the Mojo should fail when the parameter cannot be injectedpublic abstract boolean readonly
<build><finalName/></build>
rather than specifying a value
for finalName directly in the plugin configuration section. It is also useful to ensure that - for example - a
List-typed parameter which expects items of type Artifact doesn't get a List full of Strings.true
if the user should not be allowed to configure the parameter directlyCopyright © 2004–2015 The Apache Software Foundation. All rights reserved.