我已经安装sonar-runner-1.0
并sonar-3.1.1
在MAC OS X 10.8.2
. 我为我的独立项目配置了 sonar-runner,并尝试运行 sonar-runner 文件来分析代码。但是脚本文件返回了一个错误,如下所示:
Error in socksNonProxyHosts system property: sun.misc.REException: local is a duplicate
Sonar version: 3.5.1
Exception in thread "main" org.sonar.batch.bootstrapper.BootstrapException:
org.sonar.batch.bootstrapper.BootstrapException: Fail to download the file:
localhost:9000/batch
at org.sonar.batch.bootstrapper.Bootstrapper.downloadBatchFiles(Bootstrapper.java:164)
at org.sonar.batch.bootstrapper.Bootstrapper.createClassLoader(Bootstrapper.java:87)
at org.sonar.runner.Main.createClassLoader(Main.java:151)
at org.sonar.runner.Main.execute(Main.java:67)
at org.sonar.runner.Main.main(Main.java:48)
Caused by: org.sonar.batch.bootstrapper.BootstrapException: Fail to download the file: localhost:9000/batch/
at org.sonar.batch.bootstrapper.Bootstrapper.remoteContentToFile(Bootstrapper.java:113)
at org.sonar.batch.bootstrapper.Bootstrapper.downloadBatchFiles(Bootstrapper.java:159)
... 4 more
Caused by: java.io.FileNotFoundException: /net/10.132.20.192/Users/498546/Desktop/sonar-runner-1.0/bin/./.sonar/batch
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
at org.sonar.batch.bootstrapper.Bootstrapper.remoteContentToFile(Bootstrapper.java:107)
... 5 more
我什至SONAR_RUNNER_HOME
为 Java 设置了路径并sonar_project.properties
为我的项目创建了一个文件并将其放在 sonar_runner 的 bin 文件夹中。
谁能建议这个错误的原因是什么?