-
Notifications
You must be signed in to change notification settings - Fork 155
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
Sonarqube 7.6 support #81
Comments
Just faced the same. The only possible workaround is to uninstall PMD plugin from SonarQube. |
We had the same issue with findbugs. And the team there fixed it, quite quick, as it was a small change in in the code. Follow spotbugs/sonar-findbugs#244 for more details Hope it helps you. For the moment Sonarqube 7.6 is dead as we need the PMD Plugin... |
Hi, are threre any plans für updating the plugin? |
+1 |
2 similar comments
+1 |
+1 |
Hi @pethers Thank you for the issue. I can confirm the reported problem and will check on that as soon as possible. Pull requests are welcome. |
The problem seems to be that RulesProfile has been removed from ScannerSide, remaining in ServerSide scope. At compile time everything is fine because the class is still there. However, at runtime, components running in ScannerSide scope can not use it anymore. See: https://community.sonarsource.com/t/unsatisfied-dependency-in-sq-7-6/6244/4 The problem here is that Sonar-PMD does not clearly separate ServerSide from ScannerSide components. We'll have to separate both from each other so that ServerSide components keep using RulesProfile whereas ScannerSide components switch to ActiveRules. |
Besides the findbugs fix that was linked above, you can also have a look at checkstyle/sonar-checkstyle#193, as the checkstyle plugin also suffers from the same issue. |
I have fixed the problem. However, I won't create a release until I have thoroughly tested my changes. |
@jensgerdes thanks for the fix, will test it later tonight. |
Have run the latest snapshot build on http://192.168.1.15:9000/sonar/dashboard?id=com.hack23.cia%3Acia-all , build passes so happy with the result :) |
any ideas, when the plugin will be avail. in the marketplace? |
sidenote: we also have the latest snapshot running on our live and test instances for over a week now, without any issues. |
Fair question. I will try to release it within this week. |
@jensgerdes : appreciating your great work for the sonar community, but did you had the time to release the plugin? Thx |
@jensgerdes just checking on the release of this fix? We are trying to install sonarqube 7.6 but are currently blocked by this. |
3.2.0-SNAPSHOT version works correctly on SonarQube Community Edition 7.7 👍 |
Oops... yes, you are right. I'll fix the description |
I have requested the release of Sonar-PMD 3.2.0 in the market place. |
@jensgerdes Has this been made available in marketplace yet? Facing same issue (RulesProfile) as others from past, when using Sonarqube 7.6 and pitest |
Hi @mellebie If you're still experiencing problems, please file in another issue along with:
|
@jensgerdes , apologies for my ignorance. Unless I am missing something, from link provided I do not see anything to download. Where exactly should I be going, and what steps to install? Again, I apologize. |
I got it to work. I installed the latest sonar-pmd from sonarqube marketplace, and now the error is resolved |
Excellent. :-) |
org.sonar.api.profiles.RulesProfile has been removed.
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar (default-cli) on project cia-all: org.sonar.plugins.pmd.PmdSensor has unsatisfied dependency 'class org.sonar.api.profiles.RulesProfile' for constructor 'public org.sonar.plugins.pmd.PmdSensor(org.sonar.api.profiles.RulesProfile,org.sonar.plugins.pmd.PmdExecutor,org.sonar.plugins.pmd.PmdViolationRecorder,org.sonar.api.batch.fs.FileSystem)' from org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer@634d56eb:57<[Immutable]:org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer@790f4933:379<[Immutable]:org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer@6f6998b6:47<| ->
The text was updated successfully, but these errors were encountered: