声纳抱怨“ SonarQube分析已经在进行中”

nic*_*esh 1 sonarqube

我正在尝试通过Maven运行Sonar分析,但它一直在抱怨:

[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:
Run Code Online (Sandbox Code Playgroud)

此项目尚无任何分析,我什至尝试从Sonar中删除项目本身。任何想法可能是什么问题?

Joã*_*iro 7

我想解决了,删除了${basedir}/.sonar文件夹。


lea*_*ner 6

对我来说,删除${projectDir}/.scannerwork解决了问题。

Linux 上的命令:

$ <your project directory>
$ rm -rf .scannerwork
Run Code Online (Sandbox Code Playgroud)

我正在使用 sonarqube 版本 7.0 和 sonar-scanner 版本 3.0.3.778


小智 5

缓存目录显示在控制台日志中。删除对我有用。对我来说,它是在

 C:\Users\<username>\.sonar\cache
Run Code Online (Sandbox Code Playgroud)