code: @Override
      public void execute()
          throws MojoExecutionException, MojoFailureException
      {
          // Prepare an execution.
          Execution execution = new FailOnErrorExecution();
          execution.setAlgorithms( Arrays.asList( Constants.SUPPORTED_ALGORITHMS ) );
          execution.addFile( new ChecksumFile( "", new File( file ), null,null ) );
          execution.addTarget( new MavenLogTarget( getLog() ) );
  
          // Run the execution.
          try
          {
              execution.run();
          }
          catch ( ExecutionException e )
          {
              getLog().error( e.getMessage() );
              throw new MojoFailureException( e.getMessage() );
          }
      }
docs: {@inheritDoc}