in tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/licensecheck/JarFileChecker.java [106:120]
private static boolean noticeFileExistsAndIsValid(Path noticeFile, Path jar)
throws IOException {
if (!Files.exists(noticeFile)) {
LOG.error("Missing META-INF/NOTICE in {}", jar);
return false;
}
final String noticeFileContents = readFile(noticeFile);
if (!noticeFileContents.contains("The Apache Software Foundation")) {
LOG.error("The notice file in {} does not contain the expected entries.", jar);
return false;
}
return true;
}