2017-10-18 32 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版本更新。這是固定的。

相關問題