SonarQube - 无法连接到 >本地主机/0:0:0:0:0:0:0:1:9000 [英] SonarQube - Failed to connect to > localhost/0:0:0:0:0:0:0:1:9000

查看:103
本文介绍了SonarQube - 无法连接到 >本地主机/0:0:0:0:0:0:0:1:9000的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在本地构建我的 Maven 项目时,我会运行声纳检查.我收到以下错误.谷歌搜索并没有解决这个问题.

When I build my maven project locally, I run a sonar check. I am getting the following error. Googling hasn't resolved the issue.

我是 SonarQube 的新手 - 我是否缺少配置?

I am new to SonarQube - am I missing config?

[ERROR] 无法执行目标org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar项目 x 上的(默认 cli):无法执行 SonarQube:无法获取来自服务器的引导索引:无法连接到本地主机/0:0:0:0:0:0:0:1:9000:连接被拒绝:连接

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar (default-cli) on project x: Unable to execute SonarQube: Fail to get bootstrap index from server: Failed to connect to localhost/0:0:0:0:0:0:0:1:9000: Connection refused: connect

推荐答案

SonarQube 扫描仪不会单独运行来分析您的代码.它们与 SonarQube 服务器以及加载在该服务器中的语言分析器进行交互.

The SonarQube Scanners don't run in isolation to analyze your code. They interact with a SonarQube server, and language analyzers loaded in that server.

运行初步试验从 sonarqube.org 下载最新版本,展开生成的 zip,然后启动服务器.然后您将能够成功运行扫描.

To run an initial trial, download the latest version from sonarqube.org, expand the resulting zip, and start the server. Then you'll be able to successfully run a scan.

请注意,我刚刚给您的说明使用仅供试用的机载 H2 数据库启动服务器.您不应该将该数据库投入生产.

Note that the instructions I've just given you start the server with a for-trial-only on-board H2 database. You should not go into production with that database.

这篇关于SonarQube - 无法连接到 >本地主机/0:0:0:0:0:0:0:1:9000的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆