From 4aaf0da7f8337aed08c417ff8a7eb0204a4b925e Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Mon, 8 Apr 2024 19:57:55 +0200 Subject: [PATCH] Fixups from review (#144) --- src/it/MPMD-379-JDK21/invoker.properties | 2 -- .../java/org/apache/maven/plugins/pmd/exec/CpdExecutor.java | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/it/MPMD-379-JDK21/invoker.properties b/src/it/MPMD-379-JDK21/invoker.properties index 3289da6d..03135633 100644 --- a/src/it/MPMD-379-JDK21/invoker.properties +++ b/src/it/MPMD-379-JDK21/invoker.properties @@ -15,8 +15,6 @@ # specific language governing permissions and limitations # under the License. -invoker.java.version = 1.8+ - # available toolchains under linux: # https://github.com/apache/infrastructure-p6/blob/production/modules/build_nodes/files/toolchains.xml diff --git a/src/main/java/org/apache/maven/plugins/pmd/exec/CpdExecutor.java b/src/main/java/org/apache/maven/plugins/pmd/exec/CpdExecutor.java index e41d535e..3cdd5758 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/exec/CpdExecutor.java +++ b/src/main/java/org/apache/maven/plugins/pmd/exec/CpdExecutor.java @@ -181,11 +181,11 @@ private CpdResult run() throws MavenReportException { writeFormattedReport(report); } } catch (MavenReportException e) { - LOG.error(e.getMessage(), e); + LOG.error("Error while writing CPD report", e); } }); } catch (IOException e) { - LOG.error("Error while executing CPD: {}", e.getMessage(), e); + LOG.error("Error while executing CPD", e); } LOG.debug("CPD finished.");