ERROR: Error during SonarScanner execution org.sonar.java.AnalysisException: Your project contains .java files, please provide compiled classes with sonar.java.binaries property, or exclude them from the analysis with sonar.exclusions property. i am getting the above error when executing....can anyone help ?
I get this as an error after adding the D"sonar.projectBaseDir=C:\software\.. ERROR: Error during SonarScanner execution ERROR: Not authorized. Please check the properties sonar.login and sonar.password. ERROR: ERROR: Re-run SonarScanner using the -X switch to enable full debug logging. Any idea how to fix it ?
Hi Followed the same process 1. in Bin folder windows, only start sonar & sonar service only these option are showing 2. if start the sonarqube as run as administrator the cmd prompt is auto closing.
Hey man, I faced the same issue. The resolution is following 1. The java version should be either 11 or 17 2. Set Environment variables as follows: "SONAR_JAVA_PATH" : "C:\Program Files\Java\jdk-17\bin\java.exe" or wherever you have installed your JAVA. Hope this helps!
I am getting this error at the last and final step, what does it mean?
Re-run SonarScanner using the -X switch to enable full debug logging.
It is VERY IMPORTANT to add the " -D"sonar/projectBaseDir= ". I forgot this and struggled for 4 hours to fix it..
ERROR: Error during SonarScanner execution
org.sonar.java.AnalysisException: Your project contains .java files, please provide compiled classes with sonar.java.binaries property, or exclude them from the analysis with sonar.exclusions property.
i am getting the above error when executing....can anyone help ?
Thanks for your presentation. It was amazing!!!🤩
My pleasure 😊
thanks for help , for me it is showing project as "PASSED" in green color but " The main branch of this project is empty. "
I get this as an error after adding the D"sonar.projectBaseDir=C:\software\..
ERROR: Error during SonarScanner execution
ERROR: Not authorized. Please check the properties sonar.login and sonar.password.
ERROR:
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
Any idea how to fix it ?
Your token might have expired or you have given a wrong token. regenerate the token and try again
you need to add a space between your keys and projectBaseDir (-D"sonar.login=YourKey" -D"sonar.projectBaseDir=C:\software\code)
@@mr.expert-vijay please help me even after adding project base dir at end the report is not generated...
Thank you so much Mama. Helped me a lot.
When I click on Start sonar which is in video at 4:54, its not working. Can you help me?
same issue
Same issue
Hi Followed the same process
1. in Bin folder windows, only start sonar & sonar service only these option are showing
2. if start the sonarqube as run as administrator the cmd prompt is auto closing.
Hey man, I faced the same issue. The resolution is following
1. The java version should be either 11 or 17
2. Set Environment variables as follows: "SONAR_JAVA_PATH" : "C:\Program Files\Java\jdk-17\bin\java.exe" or wherever you have installed your JAVA.
Hope this helps!
you saved my life , thanks
Happy to help
If i try to open in localhost:9099, I am getting as localhost refused to connect..How to resolve the issue
Me too :///
How to run Java source without class file?
awesome sir very very very thank you
Showing like sonarqube is offline.please contact adminsitrator
it works
not working
where can I get the code?
Please help me to setup
thank you so much!
in my case - downgrade to Java 17 LTS solved all issues
Great tutorial!
can you help me to install this
Yes
yes, send me details
Not working. There is n wrapper.exe. Not all information is showed. Fake video!
It not working