in src/main/java/org/apache/maven/shared/verifier/Verifier.java [861:871]
public void verifyFileContentMatches(String file, String regex) throws VerificationException {
verifyFilePresent(file);
try {
String content = FileUtils.fileRead(file);
if (!Pattern.matches(regex, content)) {
throw new VerificationException("Content of " + file + " does not match " + regex);
}
} catch (IOException e) {
throw new VerificationException("Could not read from " + file, e);
}
}