我最近已将 Sonarqube 从 4.0升级到4.5.1 ,而使用 sonar-runner 2.0 的版本现已失败以下错误。
当安装了sonarqube 4.0时,它曾经工作得很好
Exception in thread "main" java.lang.IllegalStateException: Fail to download libraries from server
at org.sonar.runner.Bootstrapper.downloadBatchFiles(Bootstrapper.java:166)
at org.sonar.runner.Bootstrapper.createClassLoader(Bootstrapper.java:89)
at org.sonar.runner.Runner.createClassLoader(Runner.java:229)
at org.sonar.runner.Runner.execute(Runner.java:151)
at org.sonar.runner.Main.execute(Main.java:84)
at org.sonar.runner.Main.main(Main.java:56)
Caused by: java.io.IOException: Server returned HTTP response code: 400 for URL: http://localhost:9000/sonar/batch/
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1612)
at java.net.URLConnection.getContent(URLConnection.java:748)
at org.sonar.runner.Bootstrapper.remoteContent(Bootstrapper.java:125)
at org.sonar.runner.Bootstrapper.downloadBatchFiles(Bootstrapper.java:158)
... 5 more
Build step 'Execute shell' marked build as failure
为什么我会收到此错误?
如果没有,声纳2.0 与 SonarQube 4.5.1兼容
您会推荐哪种声纳 - 跑步版?
这个答案SonarRunner with gradle: Fail to download libraries from server没有帮助,因为我没有使用gradle
谢谢你的回答。