I’m Following the migration guide for Sonarqube (6.5 to 8.6.1.40680) and according to it first
I have to migrate to 6.7LTS.
I’m creating a Sonar Plugin using Java 11. While migrating to 6.7LTS. I made changes in the pom file and I have changed the sonar-plugin-api from 6.4 to 6.7.
While analyzing my project using Sonar-Scanner it always shows this error java.lang.NoClassDefFoundError: org/sonar/channel/Channel.
I have this jar in the same root folder where all other dependencies lie but still getting the above-mentioned error. Why I am getting this error, Can anybody help me with this?
Hi,
Two things are unclear to me:
- First, why is your target version 8.6? It is also past EOL. You should be aiming for 8.9.2 LTS, or 9.0.1, the Latest version.
- Why you’re trying to update your custom plugin for intermediate versions you won’t actually run on. Why not get to your target version and make all necessary changes at once?
Ann
Hi @ganncamp ,
The target version is 8.6 because it is an organizational requirement and out of my control.
And, as mentioned in the post - Limit on number of rule violations display on the UI of analysis report of Sonarqube - #2 by ganncamp
I should follow the upgrade path in order to reach the targeted version, hence updating my custom plugin to intermediate version.
Hope this clears your doubts related to this post.
Thanks
Hi,
You’re going to have a hard time finding help with the 6.7 API. It’s a full 2 LTS versions/nearly 4 years behind. Nonetheless, I’ll move this into the proper category to maybe draw the attention you need.
Ann