eclipse SonarLint 无法连接到 SonarQube 服务器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/37735619/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
SonarLint cannot connect to SonarQube Server
提问by fuechsle
I have eclipse mars2 with sonarLint 2.1. I try to connect to a SonarQube Server 5.1.2
我有带有 sonarLint 2.1 的 eclipse mars2。我尝试连接到 SonarQube Server 5.1.2
When I try to connect via the eclipse GUI, the following error occurs:
当我尝试通过 eclipse GUI 连接时,出现以下错误:
The following plugins do not meet the required minimum versions, please upgrade them: java (installed: 3.0, minimum: 3.8)
以下插件不满足最低版本要求,请升级:java(安装:3.0,最低:3.8)
Do you have any ideas? Thank you guys!
你有什么想法?谢谢你们!
回答by Itamar Vieira Junior
The plugin the message is referring to is the Sonar Java Plugin. Log in to Sonar as admin, go to Administration/System/Update Center and you'll see that the current installed plugin version is 3.0. Update it to the newest version available and it should work.
该消息所指的插件是 Sonar Java Plugin。以管理员身份登录 Sonar,转到管理/系统/更新中心,您将看到当前安装的插件版本为 3.0。将其更新到可用的最新版本,它应该可以工作。
[Edit] - The upgrade is triggered by just clicking the button, but after it is downloaded and installed, you'll have to restart the Sonar server.
[编辑] - 只需单击按钮即可触发升级,但下载并安装后,您必须重新启动声纳服务器。
回答by KatieMer
Another option is to downgrade to an older version of the plugin:
另一种选择是降级到旧版本的插件:
- Exit IntelliJ
- Delete the files in the following folder (your version of Idea may be in a slightly different folder C:\Users\USER.IdeaIC2018.1\config\plugins\SonarLint\lib
- Download version 3.5.1.2759 from the following: https://plugins.jetbrains.com/plugin/7973-sonarlint
- Unzip all the files from the downloaded file to the above folder
- 退出 IntelliJ
- 删除以下文件夹中的文件(您的Idea版本可能在稍微不同的文件夹C:\Users\USER.IdeaIC2018.1\config\plugins\SonarLint\lib
- 从以下位置下载 3.5.1.2759 版本:https://plugins.jetbrains.com/plugin/7973-sonarlint
- 将下载的文件中的所有文件解压到上述文件夹中
回答by Sinapse
The newest available version in the update centre is 3.14 for some reasons. Anybody has been able to install the 3.8?
由于某些原因,更新中心的最新可用版本是 3.14。有人能安装3.8吗?