带有蚂蚁的SonarQube失败了

时间:2015-06-22 10:41:49

标签: sonarqube

我有以下设置:

  • SonarQube Server 4.5.4
  • SonarQube Ant任务版本:2.2(升级为2.1说noSuchMethod)

我得到了跟随错误,虽然以前它曾经像声纳一样工作,但是声纳-ob-task-2.1

D:\XXXXXXX\build-common.xml:90: org.sonar.runner.impl.RunnerException: Unable to execute Sonar
        at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
        at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)

Caused by: java.lang.UnsupportedOperationException: Not supported since v4.2. See http://redirect.sonarsource.com/doc/api-changes.html**
        at org.sonar.api.resources.JavaFile.unsupported(JavaFile.java:118)
        at org.sonar.api.resources.JavaFile.fromRelativePath(JavaFile.java:106)
        at org.sonar.plugins.java.JavaSourceImporter.parseDirs(JavaSourceImporter.java:69)
        at org.sonar.plugins.java.JavaSourceImporter.analyse(JavaSourceImporter.java:63)
        at org.sonar.plugins.java.JavaSourceImporter.analyse(JavaSourceImporter.java:59)
        at org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:79)
        at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:70)
        at org.sonar.batch.phases.PhaseExecutor.execute(PhaseExecutor.java:119)
        at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:194)
        at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:93)
        at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:78)
        at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:233)
        at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:228)
        at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:221)
        at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:93)
        at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:78)
        at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:64)
        at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:51)
        at org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:125)
        at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:93)

任何帮助都将不胜感激。

1 个答案:

答案 0 :(得分:0)

您正在使用的Java插件版本(1.4)非常陈旧,绝对与SonarQube 4.5.4不兼容。

请检查Plugin Matrix,您将看到您应该使用Java插件的3.3版。