Annotation Interface GenerateMavenMojo
@Documented
@Retention(CLASS)
@Target(TYPE)
@Repeatable(List.class)
public @interface GenerateMavenMojo
An annotation that triggers the generation of Maven Mojo.
A plugin can include multiple Mojos.
- Since:
- 1.0.x
- Author:
- Andriy Dmytruk
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interface
A container for repeated MavenMojo. -
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionSet the name for the property to enable or disable the mojo.String[]
Specify which properties should be defined as parameters.boolean
The prefix to use for the mojo name.The prefix to use for parameters generated in Maven Mojo.
-
Element Details
-
source
String source- Returns:
- The task configuration class name that has
PluginTask
annotation
-
-
-
namePrefix
String namePrefixThe prefix to use for the mojo name. For example if the prefix isTest
, mojo will be generated asTestMojo
. The default is the annotated class name.- Returns:
- The prefix
- Default:
- ""
-
micronautPlugin
boolean micronautPlugin- Returns:
- Whether to extend abstract micronaut mojo.
- Default:
- true
-
parameterPrefix
String parameterPrefixThe prefix to use for parameters generated in Maven Mojo.- Returns:
- The property prefix
- See Also:
- Default:
- ""
-
globalParameters
String[] globalParametersSpecify which properties should be defined as parameters. Parameters will be configured with@Property(parameter = )
in Maven.- Returns:
- The parameters list
- Default:
- {}
-
enabledPropertyName
String enabledPropertyNameSet the name for the property to enable or disable the mojo. The default is${parameterPrefix}.enabled
.- Returns:
- The name for property
- Default:
- ""
-