Post upgrade SonarQube from 7.7 to 8.9.6, getting error Fail to download libraries from server

We have upgraded SonarQube instance from 7.7 (build 23042) to 8.9.6. (build 50800) . Post upgradation of Sonarqube instance, we are getting below error.

[INFO] — sonar-maven-plugin:4.5.3:sonar (default) @ opportunity-service —
INFO: Default locale: “en_US”, source code encoding: “UTF-8”
INFO: Work directory: C:\te\opportunity-service\target\sonar
INFO: SonarQube Server 8.9.6.50800
[ERROR] Fail to download libraries from server
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping opportunity-service
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.762 s
[INFO] Finished at: 2022-05-02T14:05:52+05:30
[INFO] Final Memory: 30M/322M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.sonar:sonar-maven-plugin:4.5.3:sonar (default) on project opportunity-service: Fail to download libraries from server: 1 → [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] MojoExecutionException - Apache Maven - Apache Software Foundation

Hey there.

This is… very, very old :laughing: (February 2015). Things have moved around since then.

Check out the current documentation on the SonarScanner for Maven for the “new” plugin (org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar)

Thanks for the details, will check and try.