-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No running sonar-scanner with the new sonarqube 7.0 - NoClassDefFoundError: org/sonar/api/measures/PersistenceMode #118
Comments
I have the same issue while running from the jenkins |
It is because some of the classes from sonar plugin API have been removed in the version 7 (they were deprecated since multiple versions). Note that this is a quick-fix, and I can't say if the plugin works perfectly. However, I use it and I didn't notice any problem. |
Thanks for your reply. I am using the CentOS environment and Sonarqube is a Community edition. Your solution is completely based on Mac environment. Can you please provide some inputs for CentOS env. |
Sorry, what is the problem, more precisely ? Look at my two commits on my fork, I don't see anything that could tight the plugin to a Mac environment. Note that they are based on the develop branch, maybe some recent changes in the plugin trigger a problem in other environments ? |
Could you create a full release for version 7 of sonar, for me? Thanks. |
Again, this is not a release. I am not a developer of sonar-swift. My fork is a quick-fix and I can't guarantee the reliability of it. If you still want to use it, I have compiled the project and make it available here: https://github.com/Hugal31/sonar-swift/releases/tag/0.4-sonar-7-quick-fix |
@Hugal31 Thaks again |
@Hugal31 - yes your fixes are working. Tested on our system. Could you open a PR for this? Despite the shortcomings of the changes, that at least starts the conversation. |
@Hugal31 I is your solution compatible with sonar 7.7 ? |
@malikubaid Sorry, I did not use Sonar for a long time, I can't tell :/ |
It runs OK with sonarqube 6.7.1
Same project, same configuration file, same plugin version but with sonarqube 7.0 throws this error
The text was updated successfully, but these errors were encountered: