|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Documented @Retention(value=CLASS) @Target(value=FIELD) @Inherited public @interface Parameter
Used to configure your Mojo parameters to be injected by
MavenPluginManager.getConfiguredMojo(...).
| Optional Element Summary | |
|---|---|
String |
alias
alias supported to get parameter value. |
String |
defaultValue
parameter default value, eventually containing ${...} |
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 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 directly
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||