运行SONAR分析报告时出错

时间:2013-11-14 14:34:10

标签: java maven sonarqube

我在我的声纳配置文件中使用 sonar.java.source = 1.5 ,以便我可以为Java 1.5版运行报告。

我正在使用sonarqube 4.0。 下载了JavaEcosystem-1.5.zip,获取sonar-pmd-plugin-1.5。 我试图将sonar-pmd-plugin-1.5放在文件夹C:\ sonarqube-4.0 \ web \ deploy \ plugins \ pmd中,但它没有帮助。

我想,我在这里做错了什么。有什么指针吗?

我的sonar-project.properties,如下所示:

    # required metadata
sonar.projectKey=<poject key>
sonar.projectName=<project name>
sonar.projectVersion=1.0

# optional description
sonar.projectDescription=<Description>

# path to source directories (required)
sonar.sources=src/main/java

# The value of the property must be the key of the language.
sonar.language=java
# Encoding of the source code
sonar.sourceEncoding=UTF-8

# Additional parameters
#sonar.my.property=value

我收到以下错误:

19:45:59.428 INFO  - Execute PMD 4.3...
19:45:59.436 INFO  - Execute PMD 4.3 done: 8 ms
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 8.104s
Final Memory: 8M/101M
INFO: ------------------------------------------------------------------------
ERROR: Error during Sonar runner execution
ERROR: Unable to execute Sonar
ERROR: Caused by: org.sonar.api.utils.SonarException: Unsupported Java version for PMD: 1.5
ERROR: Caused by: Unsupported Java version for PMD: 1.5
ERROR:
ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch.
ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.

0 个答案:

没有答案