SonarQube with maven error

When trying to get analysis for a maven project im getting the following error.
Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar (default-cli) on project commons-configuration2: Unable to execute SonarQube: Fail to get bootstrap index from server: Unknown host No such host is known (analysis.apache.org)
Can anyone please help?

It looks like whatever SonarQube instance is configured doesn’t exist anymore! The Apache Foundation deprecated and removed their SonarQube instance and now uses SonarCloud.

I’d get in touch with them if you were previously pointing to analysis.apache.org for SonarQube analysis.