自SonarQube 5.2以来,批处理端不再支持任务

自SonarQube 5.2以来,批处理端不再支持任务,sonarqube,sonar-runner,Sonarqube,Sonar Runner,我安装了SonarQube 5.2和Sonar runner 2.4(最新版本)。我设法启动了SonarQube,但在尝试运行Sonar runner时出现以下错误: ERROR: Unable to execute Sonar ERROR: Caused by: Tasks are no more supported on batch side since SonarQube 5.2 ERROR: 编辑: 使用--debug运行命令时引发以下异常 是否有任何配置需要更改才能分析项目 谢谢您必

我安装了SonarQube 5.2和Sonar runner 2.4(最新版本)。我设法启动了SonarQube,但在尝试运行Sonar runner时出现以下错误:

ERROR: Unable to execute Sonar
ERROR: Caused by: Tasks are no more supported on batch side since SonarQube 5.2
ERROR:
编辑: 使用--debug运行命令时引发以下异常

是否有任何配置需要更改才能分析项目


谢谢

您必须从project base目录执行sonar runner。所以

cd my/project/base/dir
sonar-runner
编辑

sonar runner的基本假设是,您在希望它工作的目录中调用它。唯一需要的参数*是执行“任务”,但这些参数不再受支持


*请注意,您可以在命令行上定义(-D)个参数,以便在分析过程中使用。

您试图运行什么命令?/opt/sonar runner/sonar runner/home/build/project,其中/opt/sonar runner是安装sonar runner的目录,/home/build/project是Java项目的目录,使用sonar-project.properties文件insideIt,跑步者似乎可以按照预期的方式工作。这种行为有什么原因吗?@nucandrei我已经扩展了我的答案,希望能够回答你的评论。唯一的问题是这个“特性”没有文档记录,或者我找不到任何参考。谢谢。非常清楚地说“从project base目录运行以下命令”,我指的是不从其他目录运行。但现在一切都清楚了。
cd my/project/base/dir
sonar-runner