Sonarqube maven integration

Hi, We are trying to integrate the Jenkins with Sonarqube and I get the below error when I do a test maven build. Please assist.

  • versions used (SonarQube, Scanner, Plugin, and any relevant extension)
    Sonarqube - 9.2.4
    Sonarqube plugin in jenkins - 2.14
    MVN_VERSION=3.8.4
    JAVA_VERSION=11

INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 53.047 s
[INFO] Finished at: 2022-01-21T13:06:09Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar (default-cli) on project catalog: 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.
Thanks
Arun

Greetings Arun,

Please don’t raise duplicate threads.

I will close this one.