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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,639,450
Community Members
 
Community Events
196
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.

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.
Apr 28, 2021

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events