1

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

我正在使用声纳 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.
4

0 回答 0