diff --git a/maven-core/src/main/java/org/apache/maven/exception/DefaultExceptionHandler.java b/maven-core/src/main/java/org/apache/maven/exception/DefaultExceptionHandler.java index f1d0afd39347..1425fee19a4f 100644 --- a/maven-core/src/main/java/org/apache/maven/exception/DefaultExceptionHandler.java +++ b/maven-core/src/main/java/org/apache/maven/exception/DefaultExceptionHandler.java @@ -171,8 +171,6 @@ private String getReference(Throwable exception) { reference = ConnectException.class.getSimpleName(); } } - } else if (exception instanceof MojoFailureException) { - reference = MojoFailureException.class.getSimpleName(); } else if (exception instanceof LinkageError) { reference = LinkageError.class.getSimpleName(); } else if (exception instanceof PluginExecutionException) {