Error while running Sonar analysis

562 views
Skip to first unread message

vinay premkumar

unread,
Feb 16, 2017, 4:36:32 AM2/16/17
to SonarQube
Hi,

I have recently upgraded to Sonarqube 6.1 and trying to run analysis on my sources and seeing the below error. I am running Java 8 on my server.

[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar (default-cli) on project ci-etc-network-parent: Execution default-cli of goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar failed: An API incompatibility was encountered while executing org.codehaus.mojo:sonar-maven-plugin:2.6:sonar: java.lang.UnsupportedClassVersionError: org/sonar/api/utils/SonarException : Unsupported major.minor version 52.0

Regards,
Vinay

yoxo...@gmail.com

unread,
Feb 16, 2017, 4:50:41 AM2/16/17
to SonarQube
Hi,

you also need to use Java 8 for the execution of the scanner (Maven).

Note that sonar-maven-plugin 2.6 is rather old, the latest is 3.2.

see https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Maven

HTH,
Roland
Reply all
Reply to author
Forward
0 new messages