Class CleanMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.machanism.machai.gw.maven.CleanMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="clean", defaultPhase=CLEAN) public class CleanMojo extends org.apache.maven.plugin.AbstractMojo
Maven goal that deletes temporary artifacts created by the MachAI generative-workflow (GWMojo) document processing.

This goal is typically bound to Maven's clean phase.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected File
    The Maven module base directory.

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

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deletes workflow temporary files under the current module base directory.

    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
  • Field Details

    • basedir

      @Parameter(defaultValue="${basedir}", required=true, readonly=true) protected File basedir
      The Maven module base directory.
  • Constructor Details

    • CleanMojo

      public CleanMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Deletes workflow temporary files under the current module base directory.
      Throws:
      org.apache.maven.plugin.MojoExecutionException - if an error occurs while deleting temporary files