eclipse 无法访问您的 SonarQube 服务器之一。请检查您的连接设置

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20211215/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 21:21:15  来源:igfitidea点击:

One of your SonarQube server cannot be reached. Please check your connection settings

eclipseconfigurationsonarqube

提问by subhashis

I am new to Sonar and I am trying to install and configure Sonar in my local system. I have followed the steps mentioned herefor installing sonar and integrating it with eclipse, but I can not associate my project with sonar and getting exception One of your SonarQube server cannot be reached. Please check your connection settings. please see the below screen shots, and let me know if i am missing something.

我是 Sonar 的新手,我正在尝试在本地系统中安装和配置 Sonar。我已按照此处提到的步骤安装声纳并将其与 Eclipse 集成,但我无法将我的项目与声纳相关联,并出现异常无法访问您的 SonarQube 服务器之一。请检查您的连接设置。请查看下面的屏幕截图,如果我遗漏了什么,请告诉我。

Project associationSonar Server error message

项目协会声纳服务器错误信息

enter image description hereenter image description here

在此处输入图片说明在此处输入图片说明

enter image description here

在此处输入图片说明

Thanks

谢谢

回答by hcvst

I had the same issue just now.

我刚才有同样的问题。

What helped me in the end was to test the server connection from Eclipse's Window -> Settings -> SonarQube -> Servers -> http://localhost:9000 -> Edit -> Test connection

最后帮助我的是测试来自 Eclipse 的服务器连接 Window -> Settings -> SonarQube -> Servers -> http://localhost:9000 -> Edit -> Test connection

I am running a fresh SonarQube installation and did not specify a username nor a password. The test returned Successfully Connected!and thereafter SonarQube markers showed up in the source code as well as in the SonarQube issues tab.

我正在运行一个全新的 SonarQube 安装并且没有指定用户名和密码。测试返回成功连接!此后,SonarQube 标记出现在源代码以及 SonarQube 问题选项卡中。

回答by Etibar Hasanov

From the http://www.sonarqube.org/downloads/did you install sonarqube and started the service? If you didn't you need to do it first. When you start service you will see the connection string. And then in SoberQube configuration in Eclipse instead of http://localhost:9000try http://0.0.0.0:9000

您是否从http://www.sonarqube.org/downloads/安装了 sonarqube 并启动了该服务?如果你没有,你需要先做。当您启动服务时,您将看到连接字符串。然后在 Eclipse 中的 SoberQube 配置中而不是 http://localhost:9000尝试 http://0.0.0.0:9000

回答by TubusMan

the problem is with your java runtime(JRE) , what you need to do is to download a new JRE from oracle : http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.htmland install it , then try again and it should work

问题在于您的 java 运行时(JRE),您需要做的是从 oracle 下载新的 JRE:http: //www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html并安装它,然后再试一次,它应该可以工作

a note : only install jre and not jdk , when finished check in terminal using java -version command if the version is according to what you have just installed . good luck !

注意:如果版本与您刚刚安装的版本一致,则仅安装 jre 而不是 jdk,在使用 java -version 命令完成终端签入后。祝你好运 !