Source:
public void execute() throws MojoExecutionException, MojoFailureException { if (skip) { getLog().info("Skipping pgpverify:check"); } else { prepareLogWithQuiet(); final File mavenBuildDir = new File(session.getCurrentProject().getBuild().getDirectory()); final SkipFilter dependencyFilter = prepareDependencyFilters(); final SkipFilter pluginFilter = preparePluginFilters(); prepareForKeys(); final long artifactResolutionStart = System.nanoTime(); final ArtifactResolver resolver = new ArtifactResolver(getLog(), repositorySystem, localRepository, remoteRepositories); final Configuration config = new Configuration(dependencyFilter, pluginFilter, this.verifyPomFiles, this.verifyPlugins, this.verifyPluginDependencies, this.verifyAtypical); final Set<Artifact> artifacts = resolver.resolveProjectArtifacts(this.project, config); logWithQuiet.accept(() -> String.format("Resolved %d artifact(s) in %s", artifacts.size(), Duration.ofNanos(System.nanoTime() - artifactResolutionStart))); final ValidationChecksum validationChecksum = new ValidationChecksum.Builder( getLog(), mavenBuildDir).checksum(artifacts); if (validationChecksum.checkValidation()) { getLog().info("Artifacts were already validated in a previous run."); return; } if (getLog().isDebugEnabled()) { getLog().debug("Discovered project artifacts: " + artifacts); } final long signatureResolutionStart = System.nanoTime(); final SignatureRequirement signaturePolicy = determineSignaturePolicy(); final Map<Artifact, Artifact> artifactMap = resolver.resolveSignatures(artifacts, signaturePolicy); logWithQuiet.accept(() -> String.format("Resolved signatures in %s", Duration.ofNanos(System.nanoTime() - signatureResolutionStart))); final long artifactValidationStart = System.nanoTime(); try { verifyArtifactSignatures(artifactMap); } finally { logWithQuiet.accept(() -> String.format("Finished artifacts validation in %s", Duration.ofNanos(System.nanoTime() - artifactValidationStart))); } validationChecksum.saveChecksum(); } }

Target:
public void execute() throws MojoExecutionException, MojoFailureException { if (skip) { getLog().info("Skipping pgpverify:check"); } else { prepareLogWithQuiet(); final File mavenBuildDir = new File(session.getCurrentProject().getBuild().getDirectory()); final SkipFilter dependencyFilter = prepareDependencyFilters(); final SkipFilter pluginFilter = preparePluginFilters(); prepareForKeys(); final long artifactResolutionStart = System.nanoTime(); final ArtifactResolver resolver = new ArtifactResolver(getLog(), repositorySystem, localRepository, remoteRepositories); final Configuration config = new Configuration(dependencyFilter, pluginFilter, this.verifyPomFiles, this.verifyPlugins, this.verifyPluginDependencies, this.verifyAtypical); final Set<Artifact> artifacts = resolver.resolveProjectArtifacts(this.project, config); logWithQuiet.accept(() -> String.format("Resolved %d artifact(s) in %s", artifacts.size(), Duration.ofNanos(System.nanoTime() - artifactResolutionStart))); final ValidationChecksum validationChecksum = new ValidationChecksum.Builder().destination(mavenBuildDir) .artifacts(artifacts).disabled(this.disableChecksum).build(); if (validationChecksum.checkValidation()) { logWithQuiet.accept(() -> "Artifacts were already validated in a previous run. " + "Execution finished early as the checksum for the collection of artifacts " + "has not changed."); return; } if (getLog().isDebugEnabled()) { getLog().debug("Discovered project artifacts: " + artifacts); } final long signatureResolutionStart = System.nanoTime(); final SignatureRequirement signaturePolicy = determineSignaturePolicy(); final Map<Artifact, Artifact> artifactMap = resolver.resolveSignatures(artifacts, signaturePolicy); logWithQuiet.accept(() -> String.format("Resolved signatures in %s", Duration.ofNanos(System.nanoTime() - signatureResolutionStart))); final long artifactValidationStart = System.nanoTime(); try { verifyArtifactSignatures(artifactMap); } finally { logWithQuiet.accept(() -> String.format("Finished artifacts validation in %s", Duration.ofNanos(System.nanoTime() - artifactValidationStart))); } validationChecksum.saveChecksum(); } }