Annotation Type Mojo


This annotation will mark your class as a Mojo (ie. goal in a Maven plugin).
Since:
4.0.0
  • Element Details

    • name

      String name
      goal name (required).
      Returns:
      the goal name
    • defaultPhase

      LifecyclePhase defaultPhase
      default phase to bind your mojo.
      Returns:
      the default phase
      Default:
      NONE
    • requiresDependencyResolution

      ResolutionScope requiresDependencyResolution
      the required dependency resolution scope.
      Returns:
      the required dependency resolution scope
      Default:
      NONE
    • requiresDependencyCollection

      ResolutionScope requiresDependencyCollection
      the required dependency collection scope.
      Returns:
      the required dependency collection scope
      Default:
      NONE
    • instantiationStrategy

      InstantiationStrategy instantiationStrategy
      your Mojo instantiation strategy. (Only per-lookup and singleton are supported)
      Returns:
      the instantiation strategy
      Default:
      PER_LOOKUP
    • requiresProject

      boolean requiresProject
      does your mojo requires a project to be executed?
      Returns:
      requires a project
      Default:
      true
    • aggregator

      boolean aggregator
      if the Mojo uses the Maven project and its child modules.
      Returns:
      uses the Maven project and its child modules
      Default:
      false
    • requiresOnline

      boolean requiresOnline
      does this Mojo need to be online to be executed?
      Returns:
      need to be online
      Default:
      false
    • configurator

      String configurator
      configurator bean name.
      Returns:
      the configurator bean name
      Default:
      ""