如何在Eclipse中查看SonarQube Web浏览器,规则描述和问题编辑器

时间:2015-01-22 06:51:11

标签: java

我使用的是Ubuntu 14.04 lts,Os型32位,SonarQube 4.5.2,Sonar-runner 2.4,java版本" 1.7.0_65",Eclipse Kepler。

在Eclipse中分析SonarQube时显示以下问题:

SonarQube Analysis has encountered a problem

Error during Execution of Sonar

Error during execution of Sonar
Error status [command: /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java -cp /tmp/sonar-runner-impl8404187497975734722.jar org.sonar.runner.impl.BatchLauncherMain /tmp/sonar-project6286406354288770628.properties]: 1



Retrieve remote issues of project SonarTest...
Start SonarQube analysis on SonarTest...
INFO: SonarQube Server 4.5.2
Exception in thread "main" java.lang.IllegalStateException: Unable to create user cache/home/Username/.sonar/cache
    at org.sonar.home.cache.FileCache.createDir(FileCache.java:156)
    at org.sonar.home.cache.FileCache.<init>(FileCache.java:47)
    at org.sonar.home.cache.FileCache.create(FileCache.java:53)
    at org.sonar.home.cache.FileCacheBuilder.build(FileCacheBuilder.java:60)
    at org.sonar.runner.impl.Jars35.<init>(Jars35.java:40)
    at org.sonar.runner.impl.JarDownloader.download35(JarDownloader.java:56)
    at org.sonar.runner.impl.JarDownloader.download(JarDownloader.java:40)
    at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:71)
    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.impl.BatchLauncherMain.execute(BatchLauncherMain.java:41)
    at org.sonar.runner.impl.BatchLauncherMain.main(BatchLauncherMain.java:59)
Caused by: java.io.IOException: Unable to create directory /home/Username/.sonar/cache
    at org.apache.commons.io.FileUtils.forceMkdir(FileUtils.java:1748)
    at org.sonar.home.cache.FileCache.createDir(FileCache.java:154)
    ... 12 more

0 个答案:

没有答案