Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,361,708
Community Members
 
Community Events
168
Community Groups

SonarCloud - Java version

 

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

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.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 9.0 is now available

Hey there, Data Center community! I'm Martyna Wojtas and I am the Product Manager for Bamboo Data Center. I’m excited to share that Bamboo 9.0 is now available. We purpose-built this platform to help...

317 views 0 7
Read article

Atlassian Community Events