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.boolean
The prefix to use for the mojo name.The property 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
-
propertyPrefix
String propertyPrefixThe property prefix to use for parameters generated in Maven Mojo.- Returns:
- The property prefix
- See Also:
- Default:
- ""
-
enabledPropertyName
String enabledPropertyNameSet the name for the property to enable or disable the mojo. The default is${propertyPrefix}.enabled
.- Returns:
- The name for property
- Default:
- ""
-