声纳扫描仪引擎未启动 [英] Sonar Scanner engine is not started

查看:35
本文介绍了声纳扫描仪引擎未启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照 使用 SonarQube 扫描仪分析中的说明进行操作为 Ant 分析一个 ant 项目并得到以下错误:

I follow the instruction at Analyzing with SonarQube Scanner for Ant to analyzing an ant project and got following error:

Buildfile: C:\Projects\my-sonar\build.xml
     [echo] Build properties read from build.properties
clean:
sonar:
[sonar:sonar] Apache Ant(TM) version 1.9.4 compiled on April 29 2014
[sonar:sonar] SonarQube Ant Task version: 2.5
[sonar:sonar] Loaded from: file:/C:/Projects/my-sonar/.ant/lib/sonarqube-ant-task-2.5.jar
[sonar:sonar] User cache: C:\Users\test\.sonar\cache
[sonar:sonar] Load global settings

BUILD FAILED
C:\Projects\my-sonar\build.xml:541: java.lang.IllegalStateException: Scanner engine is not started. Unable to execute task.

我使用的是 JDK 1.8 并连接到远程 SonarQube 服务器.

I'm using JDK 1.8 and connecting to a remote SonarQube server.

我是否必须在本地将声纳扫描仪作为服务启动?

Do I have to start sonar-scanner as a service locally?

感谢任何帮助.

更新:

这在添加sonar.login"后有效build.xml 中的sonar.password".错误信息有点误导...

This works after adding "sonar.login" & "sonar.password" in build.xml. The error message is kind of misleading...

推荐答案

我从生产环境收到了完全相同的日志消息.该配置在测试环境中工作.问题是凭据.我同意你的更新,错误信息有点误导......"

I received the exact same log message from the production environment. The configuration works in the test environment. The issue was credentials. I agree with your update, "The error message is kind of misleading..."

就我而言,Sonar-project.properties 文件中的 SonarQube 令牌不正确.我更正了令牌并成功重新运行分析.

In my case the SonarQube token was incorrect in the sonar-project.properties file. I corrected the token and reran the analysis successfully.

这篇关于声纳扫描仪引擎未启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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