private VerificationResult verify()

in src/main/java/org/apache/maven/plugins/verifier/VerifierMojo.java [114:137]


    private VerificationResult verify() throws MojoExecutionException {
        VerificationResult results = new VerificationResult();

        try (Reader reader = new FileReader(verificationFile)) {
            VerificationsXpp3Reader xppReader = new VerificationsXpp3Reader();
            Verifications verifications = xppReader.read(reader);

            for (org.apache.maven.plugins.verifier.model.File file : verifications.getFiles()) {
                // Transform the file to check into an absolute path prefixing the basedir if
                // the location is relative
                if (file.getLocation() != null) {
                    file.setLocation(
                            getAbsoluteFileToCheck(new File(file.getLocation())).getPath());
                    verifyFile(file, results);
                } else {
                    throw new MojoExecutionException("Missing <location> element");
                }
            }
        } catch (XmlPullParserException | IOException e) {
            throw new MojoExecutionException("Error while verifying files", e);
        }

        return results;
    }