You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2023/01/29 18:35:14 UTC
[maven-reporting-exec] branch master updated: [MSHARED-1193] Remove Maven 2 compat code
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-reporting-exec.git
The following commit(s) were added to refs/heads/master by this push:
new 3c26667 [MSHARED-1193] Remove Maven 2 compat code
3c26667 is described below
commit 3c26667428490b48b809bd5f5de4fb1cac1277dd
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Sun Jan 29 19:34:56 2023 +0100
[MSHARED-1193] Remove Maven 2 compat code
---
.../maven/reporting/exec/DefaultMavenReportExecutor.java | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java b/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java
index 372176f..41dc49c 100644
--- a/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java
+++ b/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java
@@ -372,22 +372,6 @@ public class DefaultMavenReportExecutor implements MavenReportExecutor {
LOGGER.warn("Skipping ClassCastException");
}
return null;
- } catch (PluginContainerException e) {
- /*
- * ignore old plugin which are using removed PluginRegistry [INFO] Caused by:
- * java.lang.NoClassDefFoundError: org/apache/maven/plugin/registry/PluginRegistry
- */
- if (e.getCause() != null
- && e.getCause() instanceof NoClassDefFoundError
- && e.getMessage().contains("PluginRegistry")) {
- if (LOGGER.isDebugEnabled()) {
- LOGGER.warn("Skipping NoClassDefFoundError with PluginRegistry", e);
- } else {
- LOGGER.warn("Skipping NoClassDefFoundError with PluginRegistry");
- }
- return null;
- }
- throw e;
}
}