Maven 声纳库贝[http://loalhost:9000/batch/index]无效:[404]错误
我们正在尝试在本地设置sonarqube服务器,我们已经安装了sonarqube并设置了maven设置,如下所示Maven 声纳库贝[http://loalhost:9000/batch/index]无效:[404]错误,maven,sonarqube,sonarqube-scan,sonar-runner,Maven,Sonarqube,Sonarqube Scan,Sonar Runner,我们正在尝试在本地设置sonarqube服务器,我们已经安装了sonarqube并设置了maven设置,如下所示 <pluginGroups> <pluginGroup>org.sonarsource.scanner.maven</pluginGroup> </pluginGroups> <profiles> <profile> <id>sonar</id>
<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>
最后
Fail to get bootstrap index from server: Read timed out
loalhost
应该是localhost
。那可能是你的问题恐怕是打字错误,我们改了。。但我们还是遇到了同样的问题:为什么要添加声纳扫描仪api
,以及SonarQube实例的版本是什么?
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
Fail to get bootstrap index from server: Read timed out