Skip to content
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

The SonarQube SCM Stats Plugin is not working on SonarQube Version 5.6 #12

Open
ptedeschi opened this issue Jun 22, 2016 · 3 comments
Open

Comments

@ptedeschi
Copy link

Several posts commented that the sonar-scm-stats works only on < 5.1.2 (LTS).
I tried it with the 5.6 version and the services doesn't starts.
Is there any special technical reason to not evolve the code to make it compatible with the newer versions? Some feature that has gone or something like that?

The plugin is so useful that it is a shame not seeing it working with the latest versions

If you have any ideia what need to be changed I can try fix it.

@petemounce
Copy link

I just experienced this too - My server now fails to start if the plugin is installed.

@ptedeschi
Copy link
Author

ptedeschi commented Jun 24, 2016

Exactly... There is an IllegalStateException during Scm Stats plugin load caused by java.lang.NoClassDefFoundError: org/sonar/api/charts/AbstractChart.

I investigated and the AbstractChart was deprecated in 4.5.1 and removed on 5.4.
It was replaced by Javascript charts

@ptedeschi
Copy link
Author

I solved the problem regarding JFreeChart dependency and could run the instance of sonarqube server BUT when I tried to analyze a project, a new exception occurred:

Caused by: org.picocontainer.injectors.AbstractInjector$UnsatisfiableDependenciesException: org.sonar.plugins.scmstats.MavenScmConfiguration has unsatisfied dependency 'class org.apache.maven.project.MavenProject' for constructor 'public org.sonar.plugins.scmstats.MavenScmConfiguration(org.apache.maven.project.MavenProject)' from org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer@619bfe29:215<[Immutable]:org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer@41ab013:220<[Immutable]:org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer@52b1beb6:9<[Immutable]:org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer@264c5d07:32<|

This plugin is so tied with older versions of sonarqube that it need to be rewritten from scratch. It is a pity!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants