Class ArtifactDigestsCleanMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="clean-artifact-digests",
          defaultPhase=CLEAN,
          requiresProject=true,
          threadSafe=true)
    public class ArtifactDigestsCleanMojo
    extends org.apache.maven.plugin.AbstractMojo
    Removes artifact digest files generated by the generate-artifact-digests goal.

    This mojo scans the project's build directory for digest files (sidecar or central) and deletes them. It binds by default to the clean phase and runs on each module.

    Note: Unlike the AI instruction file HashCleanMojo which uses executionRootOnly, this mojo runs on each module to ensure cleanup of all digest files across the reactor.

    • Constructor Detail

    • Method Detail

      • execute

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