Interface WeakMojoExecutionListener


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

Unlike MojoExecutionListener, this extension point does not trigger instantiation of the component, hence "weak" class name prefix. Only applies to mojo execution scoped components.

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)