Reputation: 4891
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
Reputation: 69470
The installed sonarqube-findbugs plugin is not java 11 compatible. Go into the Adminmistration --> Marketplace view and update this plugin
Upvotes: 1