Sonarqube [http://loalhost:9000/batch/index] недействительно: [404] Ошибка - PullRequest
0 голосов
/ 26 июня 2018

мы пытаемся настроить сервер sonarqube локально, мы установили sonarqube и установили настройку maven следующим образом

<pluginGroups>
    <pluginGroup>org.sonarsource.scanner.maven</pluginGroup>
</pluginGroups>
<profiles>
    <profile>
        <id>sonar</id>
        <activation>
            <activeByDefault>true</activeByDefault>
        </activation>
        <properties>
            <!-- Optional URL to server. Default value is http://localhost:9000 -->
            <sonar.host.url>
                http://loalhost:9000
            </sonar.host.url>
        </properties>
    </profile>
</profiles>

и зависимость от сканера добавлена ​​в pom

   <dependency>
        <groupId>org.sonarsource.scanner.api</groupId>
        <artifactId>sonar-scanner-api</artifactId>
        <version>2.10.0.1189</version>
   </dependency>

при выполнении mvnкоманда mvn clean install sonar: sonar .. мы получаем ошибку ниже

Caused by: java.lang.IllegalStateException: Fail to get bootstrap index from server


Caused by: java.lang.IllegalStateException: Fail to get bootstrap index from server
        at org.sonarsource.scanner.api.internal.BootstrapIndexDownloader.getIndex(BootstrapIndexDownloader.java:42)
        at org.sonarsource.scanner.api.internal.JarDownloader.getScannerEngineFiles(JarDownloader.java:58)
        at org.sonarsource.scanner.api.internal.JarDownloader.download(JarDownloader.java:53)
        at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:76)
        ... 29 more
Caused by: java.lang.IllegalStateException: Status returned by url [http://loalhost:9000/batch/index] is not valid: [404]
        at org.sonarsource.scanner.api.internal.ServerConnection.callUrl(ServerConnection.java:115)
        at org.sonarsource.scanner.api.internal.ServerConnection.downloadString(ServerConnection.java:98)
        at org.sonarsource.scanner.api.internal.BootstrapIndexDownloader.getIndex(BootstrapIndexDownloader.java:39)
        ... 32 more

finally

Fail to get bootstrap index from server: Read timed out
...