public void handleFailures()

in src/main/java/org/apache/maven/plugins/invoker/InvokerSession.java [239:261]


    public void handleFailures(Log logger, boolean ignoreFailures) throws MojoFailureException {
        updateStats();

        if (!failedJobs.isEmpty()) {
            String message = failedJobs.size() + " build" + (failedJobs.size() == 1 ? "" : "s") + " failed.";

            if (ignoreFailures) {
                logger.warn("Ignoring that " + message);
            } else {
                throw new MojoFailureException(message + " See console output above for details.");
            }
        }

        if (!errorJobs.isEmpty()) {
            String message = errorJobs.size() + " build" + (errorJobs.size() == 1 ? "" : "s") + " in error.";

            if (ignoreFailures) {
                logger.warn("Ignoring that " + message);
            } else {
                throw new MojoFailureException(message + " See console output above for details.");
            }
        }
    }