Sonarqube maven plugin and truststores

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    sonarqube 9.4 maven scanner v 3.9.1.2184
  • what are you trying to achieve
    Scan my maven project with sonarqube
  • what have you tried so far to achieve this
    used the maven command:
    mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar -Dsonar.host.url=<my_sonar-url> -Djavax.net.ssl.trustStore= -Djavax.net.ssl.trustStorePassword= -Dsonar.projectKey= -Dsonar.projectName= -Dsonar.login=

However, i keep getting this error: Hostname not verified (no certificates)
I have created a trust store and given that location in the command yet it seems like the trust store is ignored. How can i know which trust store the scanner uses?

Hi,

Welcome to the community!

Does this seem relevant?

What’s your JDK?

 
Ann

1 Like

Hi Ann. Thanks yes. It was openjdk. When i shifted to Oracle jdk, it worked fine.

1 Like