From 720e46d91dce7268e91c32f0af37c37dac919d85 Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Tue, 28 Jan 2020 10:13:42 +0100 Subject: [PATCH] Revert "[MNG-5587] When the build fails emit any errors without the user having to specify -e or -X" This reverts commit 838c196359bd2a9715542e5212010ced74e8981a. --- maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java | 1 + 1 file changed, 1 insertion(+) diff --git a/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java b/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java index 79e1ffeac7..cbdf47fdb5 100644 --- a/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java +++ b/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java @@ -480,6 +480,7 @@ public class MavenCli // LOG LEVEL cliRequest.debug = cliRequest.commandLine.hasOption( CLIManager.DEBUG ); cliRequest.quiet = !cliRequest.debug && cliRequest.commandLine.hasOption( CLIManager.QUIET ); + cliRequest.showErrors = cliRequest.debug || cliRequest.commandLine.hasOption( CLIManager.ERRORS ); slf4jLoggerFactory = LoggerFactory.getILoggerFactory(); Slf4jConfiguration slf4jConfiguration = Slf4jConfigurationFactory.getConfiguration( slf4jLoggerFactory );