public List buildMavenReports()

in src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java [146:171]


    public List<MavenReportExecution> buildMavenReports(MavenReportExecutorRequest mavenReportExecutorRequest)
            throws MojoExecutionException {
        if (mavenReportExecutorRequest.getReportPlugins() == null) {
            return Collections.emptyList();
        }

        Set<String> reportPluginKeys = new HashSet<>();
        List<MavenReportExecution> reportExecutions = new ArrayList<>();

        String pluginKey = "";
        try {
            for (ReportPlugin reportPlugin : mavenReportExecutorRequest.getReportPlugins()) {
                pluginKey = reportPlugin.getGroupId() + ':' + reportPlugin.getArtifactId();

                if (!reportPluginKeys.add(pluginKey)) {
                    LOGGER.info("Plugin {} will be executed more than one time", pluginKey);
                }

                reportExecutions.addAll(buildReportPlugin(mavenReportExecutorRequest, reportPlugin));
            }
        } catch (Exception e) {
            throw new MojoExecutionException("Failed to get report for " + pluginKey, e);
        }

        return reportExecutions;
    }