Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

174 views 4 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you