2015-12-04 41 views
0

我想通過Maven來運行聲納的分析,但它不斷地抱怨:聲納抱怨「SonarQube分析正在進行中」

[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.7.1:sonar (default-cli) on project mio-commons: Another SonarQube analysis is already in progress for this project -> [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: 

有這個項目,沒有進行分析,而且我甚至試圖從Sonar刪除項目本身。任何想法可能是什麼問題?

+0

能否請你添加更多的細節? SonarQube的版本是什麼?你運行了哪個命令?它發生在其他項目上還是隻有這個項目? –

回答

3

我解決了它,我想,刪除${basedir}/.sonar文件夾。

0

對我來說,刪除${projectDir}/.scannerwork修復了這個問題。

命令在Linux上:

$ <your project directory> 
$ rm -rf .scascannerwork 

我使用sonarqube版本7.0和聲納掃描版本3.0.3.778