[英]Sonar Qube Java Custom Rules Template plugin not working
我想將自定義規則添加到SonarQube安裝5.4中。
因此,我已經從“ https://github.com/SonarSource/sonar-examples/tree/master/plugins/java-custom-rules ”下載了Java測試插件,而沒有對代碼進行任何修改。
我已經將代碼作為maven項目導入到Eclipse中,並將其編譯為jar文件。
之后,我切換到SonarQube插件文件夾並粘貼該插件文件。
然后,我停止SonarQube服務並重新啟動它。 這是我的問題。 我的SonarQube無法再次啟動。 這是來自日志文件的錯誤消息:
"ERROR web[o.a.c.c.C.[.[.[/]] Exception sending context initialized event to listener instance
of class org.sonar.server.platform.PlatformServletContextListener
org.sonar.api.utils.MessageException: File is not a plugin. Please delete it and restart:
/opt/sonar/extensions/plugins/customRuleExample.jar""
刪除文件后,SonarQuebe可以再次重新啟動。
這些是我現在已安裝的插件:
我是否需要從git更改示例代碼? 還是我想念其他東西?
最好的問候,馬蒂亞斯
請嘗試使用以下命令重建插件: org.codehaus.sonar:sonar-packaging-maven-plugin:1.12.1:sonar-plugin
並替換自定義插件jar。 還要確保在pom.xml中使用當前版本配置了聲納插件
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.