Maven connects to the sonar server. The HTTPS certificate is invalid

Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project xx-xx-xx : Unable to execute SonarScanner analysis: Fail to get bootstrap index from server: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

SonarQube server [https:/xx.xx.xx.com/sonar] can not be reached

I want to skip the authentication configuration -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true
This error will also be prompted
My running environment is gitlab runner

Hey there.

You cannot bypass the SSL verification – you will need to tell your Java installation to trust the certificates (or not use self-signed certificates)

1 Like

Thank you for your reply. Can you tell me in detail that I tried to skip it at present, but it failed. You said that not using self signed certificates means not using certificates, but not skipping certificates
I am eager to achieve your teaching