I'm getting this error when trying to build the project artifact with command "mvn clean install -U":

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

Anyone know how to fix this? I have to use the command "mvn clean install -U"

0

There are 0 best solutions below