Я перемещаю sonarQube со старого сервера на новый сервер.
При этом я получаю следующую ошибку
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.5.0.1254:sonar (default-cli) on project ags-probe: Unable to execute SonarQube: Fail to get bootstrap index from server: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Мой pom:
<profile>
<id>sonar-new</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<sonar.host.url>https://newServer.com</sonar.host.url>
<sonar.login>xyz</sonar.login>
<sonar.projectKey>key</sonar.projectKey>
<sonar.projectName>name</sonar.projectName>
</properties>
</profile>
<profile>
<id>sonar-old</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<sonar.host.url>http://oldServer.com</sonar.host.url>
<sonar.login>xyz</sonar.login>
</properties>
</profile>
<profile>
<id>sonar-local</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<sonar.host.url>http://localhost:9000/</sonar.host.url>
</properties>
</profile>
</profiles>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>${sonar-maven-plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<properties>
<sonar-maven-plugin.version>3.5.0.1254</sonar-maven-plugin.version>
</properties>
Я пытаюсь использовать sonar-new
, пока он включен sonar-old
Я выполняю команду mvn install sonar::sonar -P artifactory,sonar-new
Хотя mvn install sonar::sonar -P artifactory,sonar-old
работает отлично.