Your project contains .java files, please provide compiled classes

i am trying to scan using sonarqube version 10.3.0 my project is created under java 11. But I am facing an error related to java files isn’t able to scan in tekton

These are the logs from tekton pipeline:
INFO] Configured Java source version (sonar.java.source): 11, preview features enabled (sonar.java.enablePreview): false
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:33 min
[INFO] Finished at: 2024-03-13T01:24:26Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.10.0.2594:sonar (default-cli) on project demo: Your project contains .java files, please provide compiled classes with sonar.java.binaries property, or exclude them from the analysis with sonar.exclusions property. → [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] MojoExecutionException - Apache Maven - Apache Software Foundation

I have tried with other version of sonarqube 8.9.6 but still didn’t worked.