以上版本不再支持任務,因此我安裝了SonarQube 5.2和Sonar-runner 2.4(最新版本)。我設法開始SonarQube但我得到嘗試運行聲納亞軍時出現以下錯誤:由於SonarQube 5.2
ERROR: Unable to execute Sonar
ERROR: Caused by: Tasks are no more supported on batch side since SonarQube 5.2
ERROR:
編輯: 以下異常被拋出,當我運行命令與--debug
ERROR: Error during Sonar runner execution
org.sonar.runner.impl.RunnerException: Unable to execute Sonar
at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
at java.security.AccessController.doPrivileged(Native Method)
at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
at org.sonar.runner.api.Runner.execute(Runner.java:100)
at org.sonar.runner.Main.executeTask(Main.java:70)
at org.sonar.runner.Main.execute(Main.java:59)
at org.sonar.runner.Main.main(Main.java:53)
Caused by: Tasks are no more supported on batch side since SonarQube 5.2
是否有任何配置需要更改才能分析項目?
謝謝
你試圖運行什麼命令? –
/opt/sonar-runner/sonar-runner/home/build/project,其中/ opt/sonar-runner是sonar-runner的安裝目錄,/ home/build/project是Java項目的目錄,一個sonar-project.properties文件裏面 – nucandrei