2016-02-29 78 views
1

更新,以反映聲納的亞軍Sonarqube評價 - Ant構建失敗

我們已經配置這些項目:

enter image description here

我們使用這個sonar-project.properties文件中的根文件夾包含我們應用程序源:

sonar.projectKey=Southern 
sonar.projectName=Southern 
sonar.projectVersion=1.0 
sonar.sources=. 

我們在將上述屬性文件EXIS同一文件夾中運行聲納澆道命令TS。我們得到以下錯誤:

ERROR: Error during SonarQube Scanner execution 
ERROR: Unable to load component class org.sonar.batch.report.ActiveRulesPublishe 
r 
ERROR: Caused by: Unable to load component interface org.sonar.api.batch.rule.Ac 
tiveRules 
ERROR: Caused by: Unable to load component class org.sonar.batch.rule.ModuleQPro 
files 
ERROR: Caused by: Error 500 on http://localhost:9000/api/qualityprofiles/search. 
protobuf?projectKey=Southern 
ERROR: 

SonarQube應用程序和網站正在運行並可用。

+0

'sonar.java.libraries'屬性應指向保存項目庫的目錄,而不是SonarQube平臺的庫。 –

+0

嘗試將它指向項目的lib文件夾,但仍然失敗。想要改變使用sonar-runner,但在安裝文件夾的bin文件夾中沒有sonar-runner exe或cmd文件?它不是附加組件。聲納運動員是否有單獨的下載? –

+0

它是一個單獨的下載(正如Ant任務jar,BTW)。檢查[掃描儀文檔](http://docs.sonarqube.org/display/SONAR/Analyzing+with+SonarQube+Scanner) –

回答

0

下載了聲納運動員。

更新的屬性文件:sonar-sources = src。掃描運行但掛起了數據庫被鎖定的錯誤。

重新啓動機器並重新啓動SonarQube。問題已解決。所有掃描運行。