我正在尝试通过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中删除项目本身。任何想法可能是什么问题?
对我来说,删除${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)
| 归档时间: |
|
| 查看次数: |
3274 次 |
| 最近记录: |