caowenliang / sonar-pmd-p3c

sonarQube 整合 阿里p3c
GNU Lesser General Public License v3.0
166 stars 74 forks source link

跟sonarqube的pmd插件会有冲突吗? #4

Open swmall opened 3 years ago

swmall commented 3 years ago

有没有小伙伴试过的

CzyerChen commented 2 years ago

测试背景:sonar Community Edition版本 8.9.9 (build 56886) 会有冲突

一开始下载的官方版本 sonar-pmd-plugin-3.4.0.jar

后使用本项目编译 sonar-pmd-plugin-3.2.1.jar

初步揣测 由于两个插件名称一致,版本不同,应该无法兼容,要么就是二选一生效

最终实际实践

2022.09.05 05:42:42 ERROR web[][o.s.s.p.PlatformImpl] Web server startup failed: Found two versions of the plugin 'PMD' [pmd] in the directory 'extensions/plugins'. Please remove sonar-pmd-plugin-3.4.0.jar or sonar-pmd-plugin-3.2.1.jar.

发现同名不同版本的插件,是不能够并存的

希望对你有帮助

yehaha9876 commented 8 months ago

感觉56条规则少了pmd的规则,但的确会有冲突