How to solve the problem of inconsistent JDK versions between sonarQube local scan and Maven project

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    9.9
  • how is SonarQube deployed: zip, Docker, Helm
    zip
  • what are you trying to achieve
    Thank you very much for your answer. I have successfully upgraded to version 9.9, but the minimum version of JDK required by 9.9 is 11, and my project is built using JDK1.8

How to solve the problem of inconsistent JDK versions between sonarQube local scan and Maven project build?

In addition, why does the command executed by the local scan of sonarQube9.9 version maven project is mvn clean verify?

  • what have you tried so far to achieve this

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

It looks like you asked this question (and got an answer) over here:

I’ll close this thread as a duplicate.