简体   繁体   中英

Java 8 for Sonar, PMD, Findbugs and Checkstyle in IntelliJ

I have upgraded to Java 8 and when I try to run the task sonarRunner in order to get the reports I get the following message.

Execution failed for task ':sonarRunner'.

org.sonar.api.utils.XmlParserException: org.sonar.api.utils.SonarException: Unsupported Java version for PMD: 1.8

Is Java 8 supported in PMD? If yes how can I solve this problem?

Many thanks

Since version 5.1.0, they have had Java 8 support: See Changelists here .

I am not an active Sonar user, but from what I could find, there has been some limitation of Sonar support for Java 8. It looks like you need a more recent version of SonarQube, and version 2.2.0 or higher of the PMD plugin: read here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM