Class ErrorCodeCrawlerMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.exasol.errorcodecrawlermavenplugin.ErrorCodeCrawlerMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="verify", requiresDependencyResolution=TEST, defaultPhase=VERIFY, threadSafe=true) public class ErrorCodeCrawlerMojo extends org.apache.maven.plugin.AbstractMojo
This class is the entry point of the plugin.
  • Field Summary

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new instance of ErrorCodeCrawlerMojo.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected boolean
    Check if the plugin is enabled and should run.

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ErrorCodeCrawlerMojo

      public ErrorCodeCrawlerMojo()
      Constructs a new instance of ErrorCodeCrawlerMojo.

      This constructor is required by Maven to instantiate the Mojo during the build lifecycle. All parameter injection is handled by Maven through annotated fields, so this constructor does not perform any initialization logic.

      Note: This constructor should remain public and parameterless to be compatible with Maven's plugin instantiation mechanism.
  • Method Details

    • isEnabled

      protected boolean isEnabled()
      Check if the plugin is enabled and should run.
      Returns:
      true if the plugin is enabled, else false
    • execute

      public void execute() throws org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoFailureException