I Have installed Sonar in my system, and eclipse plugin of the same.
I am following below mentioned steps
Going to my project directory where POM.XML is located of my project and run the command
mvn sonar:sonar
I keep on getting error:
Unknown version for SonarQube server . Please check server is reachable.
And also , sonar analysis is not working from eclipse, I mean if I correct the error indicated by sonar and do sonar analysis again, it shows error at the same.
However if I do it from command prompt it is working fine. Please help me on this issue.
Though it is not a direct ans but still here is what I tried and worked for me.
username
and password
and testing the connection.pom.xml
in command prompt.mvn sonar:sonar
http://localhost:9000
The miraculously simple answer for me was:
On the top of the window it should state "Successfully connected!" and when you try to analyze the project again the error is gone.
May be a bug in the eclipse plugin.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With