[ERROR] Failed to execute goal org.apache.maven.plugins:maven-pmd-plugin:3.8:check (default) on project nacos-datasource-plugin: You have 9 PMD violations. For more details see: G:\nacos\nac
os\plugin\datasource\target\pmd.xml -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :nacos-datasource-plugin
解决办法:
打开 你的路径 \plugin\datasource\target\pmd.xml 查看详细错误提示,根据提示修改
安装插件进行检查idea 安装CheckStyle 插件
2、编译时跳过 pmd 不太建议这样做 -Dpmd.skip=true