我试图使用org.codehaus.mojo:sonar-maven-plugin的v2.7.1从Maven v3.3.3中运行Sonar,但是我收到了这个错误:
[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.7.1:sonar (default-cli) on project mio-tbc: org.sonar.plugins.scmstats.MavenScmConfiguration has unsatisfied dependency 'class org.apache.maven.project.MavenProject' for constructor 'public org.sonar.plugins.scmstats.MavenScmConfiguration(org.apache.maven.project.MavenProject)' from org.picocontainer.DefaultPicoContainer@e97f51c:205<[Immutable]:org.picocontainer.DefaultPicoContainer@377e90b0:211<[Immutable]:org.picocontainer.DefaultPicoContainer@64921450:36<| -> [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.
任何想法有什么不对?
由于
尼克
答案 0 :(得分:4)
问题似乎来自Scm Stats插件。我建议你删除它(它与SonarQube 5.2不兼容)。