2015-12-04 39 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