2017-10-18 37 views
0

我是sonarqube的新手,试图分析一个maven项目用它。我使用下面的命令做开始分析SonarQube:无法从服务器获得引导程序索引:url [http:// localhost:9000/batch/index]返回的状态无效:[404]

mvn sonar:sonar -Dsonar.host.url=http://localhost:9000 -Dsonar.login=TOKEN_GENERATED 

但我发现了404错误

[INFO] Scanning for projects... 
[INFO]                   
[INFO] ------------------------------------------------------------------------ 
[INFO] Building crystalviz 1.0-SNAPSHOT 
[INFO] ------------------------------------------------------------------------ 
[INFO] 
[INFO] --- sonar-maven-plugin:3.3.0.603:sonar (default-cli) @ crystalviz --- 
[INFO] User cache: /Users/gkumar6/.sonar/cache 
[ERROR] SonarQube server [http://localhost:9000] can not be reached 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 1.184 s 
[INFO] Finished at: 2017-10-18T16:00:59+05:30 
[INFO] Final Memory: 25M/437M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar (default-cli) on project crystalviz: Unable to execute SonarQube: Fail to get bootstrap index from server: Status returned by url [http://localhost:9000/batch/index] is not valid: [404] -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 

即使我能够访问http://localhost:9000在我的浏览器,Maven是不能够达到它。

请帮我解决这个问题。提前致谢。

+1

使用sonarqube-5.6.7后问题解决 – pkgajulapalli

回答

0

SonarQube 6.5版本更新。这是固定的。

相关问题