in src/main/java/org/apache/maven/plugins/dependency/analyze/AnalyzeReport.java [104:125]
public void executeReport(Locale locale) throws MavenReportException {
// Step 1: Analyze the project
ProjectDependencyAnalysis analysis;
try {
analysis = analyzer.analyze(project, excludedClasses);
if (usedDependencies != null) {
analysis = analysis.forceDeclaredDependenciesUsage(usedDependencies);
}
} catch (ProjectDependencyAnalyzerException exception) {
throw new MavenReportException("Cannot analyze dependencies", exception);
}
// remove everything that's not in the compile scope
if (ignoreNonCompile) {
analysis = analysis.ignoreNonCompile();
}
// Step 3: Generate the report
AnalyzeReportRenderer r = new AnalyzeReportRenderer(getSink(), i18n, locale, analysis);
r.render();
}