Map<String, Object> properties = reportProperties != null ? reportProperties : Collections.<String, Object> emptyMap();
List<ReportPlugin> reportPlugins = getReportPluginRepository(properties).getReportPlugins();
reportWriters.addAll(reportPlugins);
CompositeReportWriter reportWriter = new CompositeReportWriter(reportWriters);
MavenConsole console = new MavenConsole(getLog());
Analyzer analyzer = new AnalyzerImpl(store, reportWriter, console);
try {
analyzer.execute(ruleSet);
} catch (AnalysisException e) {
throw new MojoExecutionException("Analysis failed.", e);
}
ReportHelper reportHelper = new ReportHelper(console);
store.beginTransaction();