Sonar-Scanner-Commons doesn't work with Spring Boot!

Hello there!
I am using SonarQube 10.1 and the sonar-scanner-commons API to integrate this into my application. SonarQube is deployed by Docker. I am sending a POST request to a controller, providing the github URL, and I am getting this error:

javax.management.InstanceAlreadyExistsException: DefaultDomain:application=
at java.management/com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:436) ~[na:na]

This is the project we are working on : GitHub - SE-UoM/quality-dashboard and the error is at gr.uom.strategicplanning.analysis.sonarqube.SonarScanner.execute(SonarScanner.java:68) ~[classes/:na]

Do any of you know how to solve this? Can I even use sonar-scanner-commons with Spring Boot?

Thank you in advance,

George

Ok, so after some deep searching my friend (ArchontisKostis (Archontis Kostis) · GitHub) found that it was a JetBrains problem. You have to disable launch optimization and disable JMX endpoints.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.