microsoft / azuredevopslabs

Learn how you can plan smartly, collaborate better, and ship faster with a set of modern development services with Azure DevOps.
https://www.azuredevopslabs.com
MIT License
819 stars 914 forks source link

SonarQube and Azure DevOp - Maven #578

Open RaquelMostaza opened 2 years ago

RaquelMostaza commented 2 years ago

Hi, I am new to DevOps, when I run the pipeline in the lab "Managing technical debt with SonarQube and Azure DevOp" I get the following error in Maven:

2021-11-26T08:42:36.7022120Z [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project myshuttle: Execution default-cli of goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar failed: An API incompatibility was encountered while executing org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar: java.lang.UnsupportedClassVersionError: org/sonar/batch/bootstrapper/EnvironmentInformation has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

How can I solve it? Thanks!