We are running the Sonar analysis as part of the TFS 2015 builds. We are using powershell script which executes a maven command to run the sonar analysis. Analysis is happening fine, but we get the above error
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
Powershell script is as below
$param = " sonar:sonar -X >" + " " + """" + location + "\Sonarlog.txt"" --f=""" + $Env:BUILD_REPOSITORY_LOCALPATH + "\pom.xml"""
write-host $param
Invoke-Expression "cmd.exe /c mvn.bat $param"
We tried installing certificate as instructed in the below answer This stackoverflow answer. But still the issue persists.