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 Classes
    Modifier and Type
    Class
    Description
    static @interface 
    A container for repeated MavenMojo.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Set 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 namePrefix
      The prefix to use for the mojo name. For example if the prefix is Test, mojo will be generated as TestMojo. 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 propertyPrefix
      The property prefix to use for parameters generated in Maven Mojo.
      Returns:
      The property prefix
      See Also:
      Default:
      ""
    • enabledPropertyName

      String enabledPropertyName
      Set the name for the property to enable or disable the mojo. The default is ${propertyPrefix}.enabled.
      Returns:
      The name for property
      Default:
      ""