更新以反射(reflect) Sonar-Runner
我们配置了这些项目:
我们在包含应用程序源的文件夹的根目录中使用此 sonar-project.properties 文件:
sonar.projectKey=Southern
sonar.projectName=Southern
sonar.projectVersion=1.0
sonar.sources=.
我们在上述属性文件所在的同一文件夹中运行 sonar-runner 命令。我们收到以下错误:
ERROR: Error during SonarQube Scanner execution
ERROR: Unable to load component class org.sonar.batch.report.ActiveRulesPublishe
r
ERROR: Caused by: Unable to load component interface org.sonar.api.batch.rule.Ac
tiveRules
ERROR: Caused by: Unable to load component class org.sonar.batch.rule.ModuleQPro
files
ERROR: Caused by: Error 500 on http://localhost:9000/api/qualityprofiles/search.
protobuf?projectKey=Southern
ERROR:
SonarQube 应用程序和网站正在运行且可用。
最佳答案
下载了 Sonar 运行器。
更新了属性文件:sonar-sources=src。扫描已运行,但因数据库被锁定的错误而挂起。
重新启动计算机并重新启动 SonarQube。问题解决了。所有扫描都会运行。
关于java - Sonarqube 评估 - Ant Build 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35702602/