I am trying to scan an application coded in Java 11 using SonarCloud, the application is stored in Bitbucket.
This is the error I am getting:
‘’‘Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project (Project name): Fatal error compiling: invalid flag: --release → [Help 1]’’’
This is the example I am following: https://bitbucket.org/sonarsource/sample-maven-project/src/master/
I have tried changing the value for maven.compiler.source and maven.compiler.target to scan the appropriate version but it doesn’t want to compile. I have also scanned applications coded in Java 8 without any problems. Is there something that I need to update?