I recently subscribed to Sonarcloud paid version. But I am unable to analyze my project using sonarcloud. I keep getting following error:
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar (default-cli) on project TGService: Execution default-cli of goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar failed: A required class was missing while executing org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar: java/util/jar/Pack200
Could you please help on how to resolve this issue?
I subscribed to SonarCloud paid version. I integrated this with gitlab.
The code compiles and build is generated successfully in my local. I am able to run the application as well.
Even I tried with other cloud tools like Codacy. I am able to get the code analysis done. But the same is not working with Sonarcloud.
Hope this information is helpful to suggest the solution.
This is most likely due to the removal of java/util/jar/Pack200 in JDK14. You could downgrade to JDK13 until sonarsource releases a new plugin version.
I am using JDK 8 and using following maven versions:
<exec-maven-plugin.version>1.6.0</exec-maven-plugin.version>
<maven-javadoc-plugin.version>3.0.1</maven-javadoc-plugin.version>
<versions-maven-plugin.version>2.7</versions-maven-plugin.version>
And the POM model version is this:
<versions-maven-plugin.version>2.7</versions-maven-plugin.version>
Can you please suggest on where to change this? Can you please also extend the trail version, so that I can make these checks?