Sonarqube Version -7.9.5
SonarQube Scanner - sonar-scanner-msbuild-22.214.171.12409-net46
I executed the following commands and after executing the 3rd command I am getting execution failure error.
The command I executed in the CMD prompt are,
SonarScanner.MSBuild.exe begin /k:“Demo” /d:sonar.host.url=“http://localhost:9000” /d:sonar.login=“68cd5d3a98973949bfa4bfba0a9a5d63b673eca0”
SonarScanner.MSBuild.exe end /d:sonar.login=“68cd5d3a98973949bfa4bfba0a9a5d63b673eca0”
ERROR: Error during SonarScanner execution
org.sonar.java.AnalysisException: Please provide compiled classes of your project with sonar.java.binaries property
I found one similar kind of issue reported where it is said that due to .java file present in the code the issue occurs, in our code as well .java files are present, not sure the use of them.
How can I exclude those .java files while SonarQube analysis is performed and in which file do I need to add exclusion code?
Also, if there is some another solution to resolve this issue, then please let me know as I have very limited knowledge of sonar.
Link of similar issue -