Skip to content

Commit

Permalink
Report totals
Browse files Browse the repository at this point in the history
  • Loading branch information
cstamas committed Dec 18, 2024
1 parent ec657f7 commit 71c5755
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ public List<MavenProject> selectProjects(List<File> files, MavenExecutionRequest

List<MavenProject> projects = new ArrayList<>(results.size());

int totalProblemsCount = 0;
long totalProblemsCount = 0;

for (ProjectBuildingResult result : results) {
projects.add(result.getProject());

if (!result.getProblems().isEmpty() && LOGGER.isWarnEnabled()) {
int problemsCount = result.getProblems().size();
totalProblemsCount += problemsCount;
int problemsCount = result.getProblems().size();
totalProblemsCount += problemsCount;
if (problemsCount != 0 && LOGGER.isWarnEnabled()) {
LOGGER.warn("");
LOGGER.warn(
"{} {} encountered while building the effective model for '{}' (use -X to see details)",
Expand All @@ -88,7 +88,7 @@ public List<MavenProject> selectProjects(List<File> files, MavenExecutionRequest

if (totalProblemsCount > 0) {
LOGGER.warn("");
LOGGER.warn("Total problems: {}", totalProblemsCount);
LOGGER.warn("Total model problems reported: {}", totalProblemsCount);
LOGGER.warn("");
LOGGER.warn("It is highly recommended to fix these problems"
+ " because they threaten the stability of your build.");
Expand Down

0 comments on commit 71c5755

Please sign in to comment.