Annotation Type Execute


Used if your Mojo needs to fork a lifecycle.
Since:
4.0
  • Element Details

    • phase

      Lifecycle phase to fork. Note that specifying a phase overrides specifying a goal. For custom lifecycle phase ids use customPhase() instead. Only one of customPhase() and phase() must be set.
      Returns:
      the phase
      Default:
      NONE
    • customPhase

      String customPhase
      Custom lifecycle phase to fork. Note that specifying a phase overrides specifying a goal. This element should only be used for non-standard phases. For standard phases rather use phase(). Only one of customPhase() and phase() must be set.
      Returns:
      the custom phase id
      Default:
      ""
    • goal

      String goal
      Goal to fork. Note that specifying a phase overrides specifying a goal. The specified goal must be another goal of the same plugin.
      Returns:
      the goal
      Default:
      ""
    • lifecycle

      String lifecycle
      Lifecycle id of the lifecycle that defines phase(). Only valid in combination with phase(). If not specified, Maven will use the lifecycle of the current build.
      Returns:
      the lifecycle id
      See Also:
      Default:
      ""