Maven PMD插件3.5的JDK13失败 [英] Maven PMD Plugin 3.5 fails with JDK13

查看:932
本文介绍了Maven PMD插件3.5的JDK13失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-pmd-plugin:3.5:pmd (pmd) on project my_project: Execution pmd of goal org.apache.maven.plugins:maven-pmd-plugin:3.5:pmd failed: org.apache.maven.reporting.MavenReportException: Unsupported targetJdk value '13'. -> [Help 1]

这是一个已知问题吗?有解决方法吗?

Is this a known issue? Is there a workaround?

推荐答案

您需要更新maven-pmd-plugin.版本3.5已经有5年历史了...

You'll need to update the maven-pmd-plugin. Version 3.5 is already 5 years old...

当前(2020-04-25)的最新发行版本是3.13.0,该版本开箱即用地支持Java 13(请参阅

Current (2020-04-25) latest released version is 3.13.0, which supports Java 13 out of the box (see https://issues.apache.org/jira/browse/MPMD-295 for the original issue).

有关maven-pmd-plugin的更多信息: https://maven.apache.org/plugins/maven-pmd-plugin/

More info on maven-pmd-plugin: https://maven.apache.org/plugins/maven-pmd-plugin/

如果要更新PMD(例如,支持Java 14),则需要覆盖插件的依赖性,如下所述:

If you want to update PMD (e.g. to support Java 14), you'll need to override the plugin's dependencies as described here: https://maven.apache.org/plugins/maven-pmd-plugin/examples/upgrading-PMD-at-runtime.html and use a version of PMD, that supports Java 14 (PMD 6.22.0+).

这篇关于Maven PMD插件3.5的JDK13失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆