IllegalStateException:错误短名称不包含外部类名

时间:2016-02-25 13:33:29

标签: java sonarqube

在分析我们的一个Java项目时,我们面临以下问题:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:14.044s
[INFO] Finished at: Mon Feb 22 15:42:24 CET 2016
[INFO] Final Memory: 119M/290M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.1:sonar (default-cli) on project our-project: SonarQube is unable to analyze file : 'D:\jenkins-work\jobs\our-project\workspace\Common\src\com\company\appp\AdvApi32Lib.java': Error short name does not include outerclass name : bb -- Function -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.1:sonar (default-cli) on project our-project: SonarQube is unable to analyze file : 'D:\jenkins-work\jobs\our-project\workspace\Common\src\com\company\appp\AdvApi32Lib.java'
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)

...
Caused by: org.apache.maven.plugin.MojoExecutionException: SonarQube is unable to analyze file : 'D:\jenkins-work\jobs\our-project\workspace\Common\src\com\company\appp\AdvApi32Lib.java'
    at org.sonarsource.scanner.maven.bootstrap.ExceptionHandling.handle(ExceptionHandling.java:36)
...
Caused by: java.lang.IllegalStateException: Error short name does not include outerclass name : bb -- Function
    at com.google.common.base.Preconditions.checkState(Preconditions.java:145)
    at org.sonar.java.resolve.Convert.innerClassName(Convert.java:56)
...

你知道怎么修好吗?

我们正在使用SQ 5.3,Java插件3.9。

提前谢谢。

0 个答案:

没有答案