Class Utils

java.lang.Object
org.apache.maven.plugins.deploy.Utils

public class Utils extends Object
A utility class to assist testing.
Author:
Benjamin Bentmann
  • Field Details

    • CHECKSUM_ALGORITHMS

      public static final List<String> CHECKSUM_ALGORITHMS
  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • verifyChecksum

      public static void verifyChecksum(File file) throws org.apache.maven.plugin.MojoExecutionException, IOException
      Verifies the checksum files in the local repo for the given file.
      Parameters:
      file - The file to verify its checksum with, must not be null.
      Throws:
      org.apache.maven.plugin.MojoExecutionException - In case the checksums were incorrect.
      IOException - If the files couldn't be read.