After upgrading from Sonar8.9 to Sonar9.9, the Java version is not compatible

Sonar team:

Hello, I have recently upgraded our Sonarqube system from version 8.9 to version 9.9, but there have been some compatibility issues.

When scanning projects in Gitlab on Sonar, it is required to use the Madven version of jdk11 for scanning. I had to use Sonar’s recommended “image: maven: 3.6.3-jdk-11” instead of our previous “image: maven: 3.3.9-jdk-8”. But some of our previous projects had compatibility issues with some components. For me, I don’t want to change the plugin version of the development team, which would be a troublesome thing. So, do you currently have any solutions that are compatible with these two that can meet my needs?

Here are some screenshots of the questions:

image
image

Hi there, could somebody please help me with the answer to this question?

Hi,

two things spring to mind:
the analysis for Sonarqube 9.9 has to run with Java 11 or Java 17
your Maven 3.6.3 is very old, you should always use latest = Maven 3.9.6

https://maven.apache.org/download.cgi

Apache Maven 3.9.6 is the latest release: it is the recommended version for all users.

If you need that, you may split the build and the analysis in two several mvn CLI parts - each using another Java version.

Gilbert