Skip to content

Console Output

+ mvn sonar:sonar -Dsonar.projectKey=Reflection -Dsonar.host.url=http://localhost:9000/sonar -Dsonar.login=4c490ceb446f662e2bd8cb60644acefdfac7cdf1 -f pom.xml
[INFO] Scanning for projects...
[INFO] 
[INFO] --------------------< org.codefilarete:reflection >---------------------
[INFO] Building Reflection 1.1.2-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- sonar:3.9.1.2184:sonar (default-cli) @ reflection ---
[INFO] User cache: /var/lib/jenkins/.sonar/cache
[ERROR] SonarQube server [http://localhost:9000/sonar] can not be reached
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.575 s
[INFO] Finished at: 2026-02-22T16:49:18Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project reflection: Unable to execute SonarScanner analysis: Fail to get bootstrap index from server: Failed to connect to localhost/127.0.0.1:9000: Connection refused (Connection refused) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException