-
Notifications
You must be signed in to change notification settings - Fork 362
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
C++ plugin compatibility issue with Maven build by Java 8 version #2301
Comments
Hello @dlt-lee, Please have a look to:
Hope this helps! Regards, |
There are some projects share with this SQ. So I can't exclude C++ fromSQ. Do you hae other soluation to solve it? |
Hi @dlt-lee, there is no problem to upgrade to Java 11 because it’s backward compatible to Java 8.
Regards, |
Unfortunately,our code can not be compiled by Java 11. It only works on java8 like CXX plugin only works on 11. Thanks |
Hi @guwirth
|
Still need you help |
Hi @dlt-lee, the SonarQube docu is saying (see links above):
|
Describe the bug
our one project source code is written by java 8 and build by Maven
I use:
mvn.cmd \pom.xml -X clean package org.sonarsource.scanner.maven:sonar-maven-plugin:RELEASE:sonar checkstyle:checkstyle findbugs:findbugs pmd:pmd
It works normally on sonarqube without CXX plugin
But it failed when install CXX plugin
log:
Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project dms_autobuild: The plugin [cxx] does not support Java 1.8.0_202: org/sonar/plugins/cxx/CxxPlugin has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project dms_autobuild: The plugin [cxx] does not support Java 1.8.0_202
My systyem:
JAVA_HOME_8_X64:C:\Program Files\Java\jdk1.8.0_202
java:C:\Program Files\Java\jdk-11.0.13\jre
jdk:C:\Program Files\Java\jdk-11.0.13
I try to set sonar.java.jdkHome=C:\Program Files\Java\jdk-11.0.13 but it seems not working.
Could you help me to solve this issue?
Thanks
Expected behavior
It can work normally
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: