Maven+Travis ci+SonarCloud

hi community, i have a problem with integrating an apache project with sonarcloud. The project is compiled through travis CI, but in order to make it work I need java 8. But with the new update with versions prior to Java 11 SonarCloud fails me through the command “mvn sonar: sonar …”, how can I solve ??
thanks a lot

Hi Brielino,

It’s true that java 8 will not be supported by mvn sonar:sonar and will require java >= 11.
But currently, it should still work. Could you share your error message?
Note: You can have two Java versions available in one build environment.
To be ready for the future, you will need to build your project with java 8 and analyze it using mvn sonar:sonar with java 11.

Alban