in src/main/java/org/apache/maven/plugins/pmd/AbstractPmdReport.java [456:479]
public boolean canGenerateReport() {
if (aggregate && !project.isExecutionRoot()) {
return false;
}
if (!isAggregator() && "pom".equalsIgnoreCase(project.getPackaging())) {
return false;
}
// if format is XML, we need to output it even if the file list is empty
// so the "check" goals can check for failures
if (isXml()) {
return true;
}
try {
filesToProcess = getFilesToProcess();
if (filesToProcess.isEmpty()) {
return false;
}
} catch (IOException e) {
getLog().error(e);
}
return true;
}