From 910b39cb2a82ded2d4a8e1bee9b041e87606ea39 Mon Sep 17 00:00:00 2001 From: Elliotte Rusty Harold Date: Sun, 7 Jul 2024 18:42:17 -0400 Subject: [PATCH] [MNG-8155] Improve not built error message (#1599) Part of MNG-8155 --- .../org/apache/maven/cli/event/ExecutionEventLogger.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java b/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java index a8085253a8..265274700a 100644 --- a/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java +++ b/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java @@ -295,9 +295,9 @@ public class ExecutionEventLogger extends AbstractExecutionListener { init(); logger.info(""); infoLine('-'); - - infoMain("Skipping " + event.getProject().getName()); - logger.info("This project has been banned from the build due to previous failures."); + String name = event.getProject().getName(); + infoMain("Skipping " + name); + logger.info(name + " was not built because a module it depends on failed to build."); infoLine('-'); }