Interface MojoExecutionListener

All Known Implementing Classes:
MojoExecutionScope

public interface MojoExecutionListener

Extension point that allows build extensions observe and possibly veto mojo executions.

Note: This interface is part of work in progress and can be changed or removed without notice.
Since:
3.1.2
See Also:
  • Method Details

    • beforeMojoExecution

      void beforeMojoExecution(MojoExecutionEvent event) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • afterMojoExecutionSuccess

      void afterMojoExecutionSuccess(MojoExecutionEvent event) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • afterExecutionFailure

      void afterExecutionFailure(MojoExecutionEvent event)