Maven声纳扫描失败,SonarQube 7.7带有声纳凹槽1.6-RC1

时间:2019-06-18 19:31:19

标签: groovy build sonarqube sonarqube-scan

我在SonarQube 7.7的SonarQube 7.7的声纳Maven插件3.6.0.1398中遇到了错误,此问题是否有补丁?

Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar (default-cli) 
on project xxxxx: org.sonar.plugins.groovy.codenarc.CodeNarcSensor has unsatisfied dependency 
'class org.sonar.plugins.groovy.foundation.GroovyFileSystem' for constructor 
'public org.sonar.plugins.groovy.codenarc.CodeNarcSensor(org.sonar.api.profiles.RulesProfile,
org.sonar.plugins.groovy.foundation.GroovyFileSystem)' from org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer@6c27e700:113
<[Immutable]:org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer@168142da:336
<[Immutable]:org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer@69e8b711:54<

1 个答案:

答案 0 :(得分:1)

您最近是否更新了SonarQube? sonar-groovy 1.6-RC1与Sonar 7.7不兼容。

尝试将插件更新为1.6版本(它支持SonarQube 6.7-7.9)并重新启动SonarQube: https://github.com/Inform-Software/sonar-groovy/releases