Interface MojoExecution


@Experimental public interface MojoExecution
A MojoExecution represents a single execution of a Maven Plugin during a given build. An instance of this object is bound to the MojoExecutionScoped and available as mojoExecution within Parameter expressions.
Since:
4.0.0
  • Method Details

    • getPlugin

      @Nonnull Plugin getPlugin()
    • getModel

      @Nonnull org.apache.maven.api.model.PluginExecution getModel()
    • getDescriptor

      @Nonnull org.apache.maven.api.plugin.descriptor.MojoDescriptor getDescriptor()
    • getExecutionId

      @Nonnull String getExecutionId()
    • getGoal

      @Nonnull String getGoal()
    • getLifecyclePhase

      @Nonnull String getLifecyclePhase()
    • getConfiguration

      @Nonnull Optional<org.apache.maven.api.xml.XmlNode> getConfiguration()