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.");