问题描述
- 在linnx环境下shell触发sonar进行项目的原码分析出现异常,求解惑
-
在我已配置的环境中前几次进行触发sonar分析服务没有问题,但最近不知道是不是服务器停过电,服务以外终止运行了,现再启动后再次触发分析服务,就出现了异常,错位内容提示如下:
[ERROR] [11:33:10.265] It looks like an analysis of 'talkyun tone v2.0.0-SNAPSHOT' is already running (started about a month ago). If this is not the case, it probably means that previous analysis was interrupted and you should then force a re-run by using the option 'sonar.forceAnalysis=true'.
[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.1:sonar (default-cli) on project tone-all: Can not execute SonarQube analysis: The project is already been analysing. -> [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:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
########mvn sonar:sonar failed!!!########在错误代码中我遇到两个疑问?第一:它的描述talkyun tone v2.0.0-SNAPSHOT工程一个月前进行了分析,这啥意思?难道一个工程只能分析一次,显然不是,我直接无视了这个描述,
第二:它提示你可能是上次分析意外中断了,建议强制执行sonar.forceAnalysis=true,我试了下,没有反应,错误依旧,我茫然了
时间: 2024-08-29 05:53:20