Open ec-wagner opened 5 years ago
updating sonar-maven-plugin leads to a different error
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar
(default-cli) on project MY_PROJECT_NAME: Unable to execute SonarQube:
Fail to download libraries from server: Failed to connect to localhost/0:0:0:0:0:0:0:1:9000
Problem is that plugin make GET request on URL: https://sonarcloud.io/api/resources/index?resource=PROJECT_KEY&metrics=quality_gate_details
instead on this URL: https://sonarcloud.io/api/qualitygates/project_status?projectKey=PROJECT_KEY.
What needs to be done to make this plugin work with sonarcloud.io (SonarQube's cloud service)?
This es an example of how reports are send to sonarcloud.io:
Prerequisite to this is having the sonar scanner istalled.
Running
mvn sonar:sonar sonar-break:sonar-break
with this pom.xmlresults in