Annotation Type Execute


  • @Documented
    @Retention(CLASS)
    @Target(TYPE)
    @Inherited
    public @interface Execute
    Used if your Mojo needs to fork a lifecycle.
    Since:
    3.0
    Author:
    Olivier Lamy
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String customPhase
      Custom lifecycle phase to fork.
      java.lang.String goal
      Goal to fork.
      java.lang.String lifecycle
      Lifecycle id of the lifecycle that defines phase().
      LifecyclePhase phase
      Lifecycle phase to fork.
    • Element Detail

      • phase

        LifecyclePhase 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:
        org.apache.maven.plugins.annotations.LifecyclePhase.NONE
      • customPhase

        java.lang.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
        Since:
        3.8.0
        Default:
        ""
      • goal

        java.lang.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

        java.lang.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:
        Lifecycle Mappings
        Default:
        ""