in src/main/java/org/apache/maven/plugins/pmd/PmdReport.java [287:313]
public void executeReport(Locale locale) throws MavenReportException {
ClassLoader origLoader = Thread.currentThread().getContextClassLoader();
try {
Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());
PmdReportRenderer r = new PmdReportRenderer(
getLog(),
getSink(),
i18n,
locale,
filesToProcess,
pmdResult.getViolations(),
renderRuleViolationPriority,
renderViolationsByPriority,
isAggregator());
if (renderSuppressedViolations) {
r.setSuppressedViolations(pmdResult.getSuppressedViolations());
}
if (renderProcessingErrors) {
r.setProcessingErrors(pmdResult.getErrors());
}
r.render();
} finally {
Thread.currentThread().setContextClassLoader(origLoader);
}
}