Pavan Jadda
Pavan Jadda

Reputation: 4891

SonarQube: Unsupported class file major version 58 error when using Java 11

I am trying to execute mvn sonar:sonar command on spring boot project

$ mvn sonar:sonar -Dsonar.host.url=<URL> -Dsonar.login=<Token>

When I run the above command I get error message

Can not execute Findbugs: java.lang.IllegalArgumentException: Unsupported class file major version 58

I am using java 11 in my project and sonarqube also using OpenJDK 11.0.7+10. Java 8 projects work without any issues. I set the java version in pom.xml as shown below

pom.xml

    <properties>
        <java.version>11</java.version>
    </properties>

Upvotes: 1

Views: 4719

Answers (1)

Jens
Jens

Reputation: 69470

The installed sonarqube-findbugs plugin is not java 11 compatible. Go into the Adminmistration --> Marketplace view and update this plugin

Upvotes: 1

Related Questions