sonarqube-runner无法分析项目

在执行sonarqube-runner时,出现以下异常:

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/batch/
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1313)
        at java.net.URLConnection.getContent(URLConnection.java:688)
        at org.sonar.runner.Bootstrapper.remoteContent(Bootstrapper.java:125)
        at org.sonar.runner.Bootstrapper.downloadBatchFiles(Bootstrapper.java:158)
        ... 5 more


看起来是http://localhost:9000/batch/的问题,在访问后返回如下:

{"errors":[{"msg":"Bad filename: "}]}

似乎是这个项目已经分析所以要一个batch号?不太清楚,第一次碰见,先记录下。

你可能感兴趣的:(sonarqube-runner无法分析项目)