Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

SonarCloud - Java version

Thirupathi Gangula April 28, 2021

 

I use JDK 1.8 to compile the application source code. However, SonarCloud is looking for Java 11 to run the scan report.
If I use Java 11, it gives me a different error message.

 

I am just wondering if anyone using SonarCloud with Java 11 in Bamboo.
I don't think our application does support OpenJDK11 in order to run compile and sonarcloud together. Can you give some suggestions please ?

2 answers

0 votes
Thirupathi Gangula May 2, 2021

Hi there, I tried that created a new maven task with OpenJDK11 already. It gave me a different error as I think SonarCloud doesn't support OpenJDK11. See error message below.

29-Apr-2021 10:39:41 NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
29-Apr-2021 10:39:43 [INFO] Scanning for projects...
29-Apr-2021 10:39:43 [ERROR] [ERROR] Some problems were encountered while processing the POMs:
29-Apr-2021 10:39:43 [ERROR] Unresolveable build extension: Plugin org.mule.tools.maven:mule-app-maven-plugin:1.2 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:1.5.0 at specified path /datavg/bamboo-capabilities/java/openjdk-11.0.2/../lib/tools.jar @
29-Apr-2021 10:39:43 [ERROR] Unknown packaging: mule @ line 8, column 13
29-Apr-2021 10:39:43 @
29-Apr-2021 10:39:43 [ERROR] The build could not read 1 project -> [Help 1]
29-Apr-2021 10:39:43 [ERROR]
29-Apr-2021 10:39:43 [ERROR] The project ie.zurichlife:s-zl-document:1.2.4-SNAPSHOT (/datavg/bamboo-home/xml-data/build-dir/91652100/RP-IT-JOB1/pom.xml) has 2 errors
29-Apr-2021 10:39:43 [ERROR] Unresolveable build extension: Plugin org.mule.tools.maven:mule-app-maven-plugin:1.2 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:1.5.0 at specified path /datavg/bamboo-capabilities/java/openjdk-11.0.2/../lib/tools.jar -> [Help 2]
29-Apr-2021 10:39:43 [ERROR] Unknown packaging: mule @ line 8, column 13
29-Apr-2021 10:39:43 [ERROR]
29-Apr-2021 10:39:43 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

0 votes
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 28, 2021

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events