Closed hildo closed 5 years ago
Hi Ed,
Thank you for contacting us. We will analyze the problem and contact you again as soon as we know more.
Sorry for the late reply.
Regards.
Hi Ed
Sonargraph integration plugin does not support Java 9/10 at the moment. We will change that as soon as newer versions of SonarQube support Java 9/10. The three approaches you tried went in the right direction, but failed because the dependencies to Jaxb must be added to Sonargraph integration plugin itself, at build time.
If running Sonargraph integration plugin with Java 8 is no option at all for you, we could provide a Java 10 prerelease.
Regards Andreas
Thanks for the feedback. We can make do by continuing with Java 8 in our analysis build. We have no plans to start using language features introduced in Java 10. If we want to in the future, though, it may cause us to be unable to use this tool to analyse our code. I will try to pay attention to the updates.
Is there a prerelease of Sonar that works with Java 11? I'd be interested in testing it.
Hi Michael
Sonargraph integration plugin does not support Java 11 at the moment. As soon as we have a release supporting it we will let you know.
Regards Andreas
Any news on this - Oracle Java 8 End of Public Updates is next month!!!
Hi Christian
Good news - we plan to release a new version of Sonargraph integration plugin running on Java 11 (and 8/9/10) next week.
Regards Andreas
Hi all,
I ran some tests with the upcoming Sonargraph Plugin version on Java 11. Whilst our plugin will run fine on Java 11, the SonarQube server and the Maven SonarQube Scanner itself are still not capable of running on anything newer than Java 8 without throwing exceptions. At least that's what my test has shown and what is available on the internet. See https://docs.sonarqube.org/latest/requirements/requirements/ More info is available on Stackoverflow: https://stackoverflow.com/questions/53496420/does-the-latest-sonarqube-work-with-java-11 And also on the SonarQube community forum: https://community.sonarsource.com/t/sonarqube-support-for-openjdk-11/3975
I was surprised to see the down-votes on the comments of my colleagues, and maybe it's worth repeating: We (company called "hello2morrow") provide this plugin that integrates the information from our tool "Sonargraph" into SonarQube (which is provided by "SonarSource"). We are not affiliated in any way with SonarSource, so if you are unhappy with SonarQube's support of newer Java versions, please give that feedback to them. We are the wrong tree to bark at.
Best regards, Ingmar
@andreashoyerh2m guess the week is over ;-)
Any news on this?
@ingmarkellner the SonarQube Scanner and Maven Plugin both work with Java 11. The server's Java version does not matter for this. I just tried SonarQube 6.7.6 (LTS) with up-to-date plugins and it can analyze our Java 11 application without problems.
Now we are just stuck with Sonargraph plugin. Could you provide the current version?
Hi Christian,
I just published a 3.0.0 pre-release of the plugin here @ Github. Hope that it works for you and we are happy to receive feedback. The official release to the SonarQube marketplace will follow but the release process takes its time. I tried again to execute the SonarQube Maven Scanner on Java 11, but it still fails on my Java project with the following exception (see below). I wonder how you get it to work?
Best regards Ingmar
[ERROR] Unable to create symbol table for : D:\00_repo\sonar-sonargraph-integration\src\main\java\com\hello2morrow\sonargraph\integration\sonarqube\SonargraphRules.java
java.lang.IllegalArgumentException: null
at org.objectweb.asm.ClassReader.
Just tried the new version and at least it does not break projects without Sonargraph. I have to ask my colleges using Sonargraph to give it a try.
If you want to use Java 11 you have to update all your plugins to the current versions - at least the https://docs.sonarqube.org/display/PLUG/SonarJava plugin.
You can even use Java 11 for the SonarQube server - with version 3.0.0 of your plugin the server starts under OpenJDK 11 (with the old it fails).
@derkoe Thanks for the feedback!
Ok, the SonarJava plugin update was the missing piece. I was assuming that I get the latest and greatest of the standard plugins, when I download the latest LTS version, but that was not the case... Now the SonarQube analysis works on my machine without errors when executing Maven on Java 11.
Java 11 support of SonarQube server still seems to be unofficial: https://docs.sonarqube.org/latest/requirements/requirements/ Or do you have another source for official information on this topic?
Nope SonarQube officially requires OpenJDK 8 but it works under OpenJDK 11 as well.
Hi. I have had a Maven Project using the sonar maven plugin for a while now, interacting with a SonarQube server. Up until know, I have been using Java 8 when building and performing static analysis.
However, when I change to use OpenJDK 10 (10.0.2), the sonar:sonar goal fails. The exception is
This looks like a reflection that Java 10 is no longer providing JavaEE modules by default. I have tried different approaches to allow the plugin to find these classes
None of the above helped. The plugin seems unable to find the jaxb classes.
I am using
Open JDK 10.0.2 Maven 10.0.2 sonar-maven-plugin 3.2 SonarJava 5.7.0.15470 SonarQube 6.7.2.37468 SonarGraph plugin 3.5 SonarGraph Integration plugin 2.0.1
Would updating the integration plugin help? I can see an update is there, but the release notes aren't clear as to Java 9/10 support is provided. I've been told that SonarQube, officially, doesn't support Java 10 yet, and I'm wondering if that needs to be added before the plugin?
Any information would be greatly appreciated.
Thanks, Ed