Class HashCleanMojo

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

    @Mojo(name="clean-hashes",
          defaultPhase=CLEAN,
          requiresProject=true,
          threadSafe=true)
    public class HashCleanMojo
    extends org.apache.maven.plugin.AbstractMojo
    Removes companion hash sidecar files generated by the generate-hashes goal.

    This mojo walks a base directory using NIO Files.walkFileTree, finds files matching the configured hash output extension, and deletes them. It binds by default to the clean phase, allowing easy cleanup of generated artifacts that live alongside source code (outside the traditional target directory).

    • Constructor Detail

      • HashCleanMojo

        public HashCleanMojo()
    • Method Detail

      • execute

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