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

2022-01-17 00:00:00 configuration sonarqube eclipse

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

I am new to Sonar and I am trying to install and configure Sonar in my local system. I have followed the steps mentioned here for 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.

谢谢

推荐答案

我刚才也遇到了同样的问题.

I had the same issue just now.

最终帮助我的是从 Eclipse 的 Window -> 测试服务器连接.设置->SonarQube ->服务器->http://localhost:9000 ->编辑->测试连接

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

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

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.

相关文章