From b2b9196f61198daddcac513d849c0d808e02c8d7 Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Thu, 14 Mar 2024 18:20:01 +0100 Subject: [PATCH] [MCOMPILER-574] Propagate cause of exception in AbstractCompilerMojo --- .../org/apache/maven/plugin/compiler/AbstractCompilerMojo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java b/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java index f9e74706..5f66e4ec 100644 --- a/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java +++ b/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java @@ -720,7 +720,7 @@ public void execute() throws MojoExecutionException, CompilationFailureException try { compiler = compilerManager.getCompiler(compilerId); } catch (NoSuchCompilerException e) { - throw new MojoExecutionException("No such compiler '" + e.getCompilerId() + "'."); + throw new MojoExecutionException("No such compiler '" + e.getCompilerId() + "'.", e); } // -----------toolchains start here ----------------------------------