Hi Team,
using below versions
-sonarqube Version 6.7.7
I had to use this version for work reasons. When I use command “mvn sonar:sonar” to scanner my maven project, report a error “java.lang.IllegalArgumentException: Unsupported class file major version 59” . But I always use Java 1.8, and maven-compiler-plugin configuration is 1.8, such as:
java -version
java version “1.8.0_191”
Java™ SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot™ 64-Bit Server VM (build 25.191-b12, mixed mode)
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
I don’t know what went wrong, please help me to resolve the issue
Regards,
Gao Kunyuan