title: Unable to execute SonarQube: Fail to get bootstrap index from server:
body: <p>I am moving the sonarQube from an old server to the new server.</p>
  
  <p>While doing so I am getting the following error </p>
  
  <pre><code>[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
  </code></pre>
  
  <p>my pom is :</p>
  
  <pre><code>&lt;profile&gt;
          &lt;id&gt;sonar-new&lt;/id&gt;
          &lt;activation&gt;
              &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
          &lt;/activation&gt;
          &lt;properties&gt;
              &lt;sonar.host.url&gt;https://newServer.com&lt;/sonar.host.url&gt;
              &lt;sonar.login&gt;xyz&lt;/sonar.login&gt;
              &lt;sonar.projectKey&gt;key&lt;/sonar.projectKey&gt;
              &lt;sonar.projectName&gt;name&lt;/sonar.projectName&gt;
          &lt;/properties&gt;
      &lt;/profile&gt;
      &lt;profile&gt;
          &lt;id&gt;sonar-old&lt;/id&gt;
          &lt;activation&gt;
              &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
          &lt;/activation&gt;
          &lt;properties&gt;
              &lt;sonar.host.url&gt;http://oldServer.com&lt;/sonar.host.url&gt;
              &lt;sonar.login&gt;xyz&lt;/sonar.login&gt;
          &lt;/properties&gt;
      &lt;/profile&gt;
      &lt;profile&gt;
          &lt;id&gt;sonar-local&lt;/id&gt;
          &lt;activation&gt;
              &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
          &lt;/activation&gt;
          &lt;properties&gt;
              &lt;sonar.host.url&gt;http://localhost:9000/&lt;/sonar.host.url&gt;
          &lt;/properties&gt;
      &lt;/profile&gt;
  &lt;/profiles&gt;
  &lt;build&gt;
      &lt;pluginManagement&gt;
          &lt;plugins&gt;
             &lt;plugin&gt;
                  &lt;groupId&gt;org.sonarsource.scanner.maven&lt;/groupId&gt;
                  &lt;artifactId&gt;sonar-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${sonar-maven-plugin.version}&lt;/version&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/pluginManagement&gt;
  &lt;/build&gt;
  
  &lt;properties&gt;
     &lt;sonar-maven-plugin.version&gt;3.5.0.1254&lt;/sonar-maven-plugin.version&gt;
  &lt;/properties&gt;
  </code></pre>
  
  <p>I am trying to use the <code>sonar-new</code> while currently it is on <code>sonar-old</code></p>
  
  <p>The command I am running is <code>mvn install sonar::sonar -P artifactory,sonar-new</code></p>
  
  <p>While  <code>mvn install sonar::sonar -P artifactory,sonar-old</code> works perfectly fine.</p>