Sonarqube 获取错误“;行必须为空或大于零(得到0)";在使用jacoco构建声纳的过程中
我已经将sonar java插件升级到3.7。我们使用内置的jacoco插件来完成代码覆盖。我们使用maven target org.jacoco:jacoco-maven插件:prepare-agent和sonar:sonar从jenkins作业中触发声纳构建。但是,升级后我收到以下错误:Sonarqube 获取错误“;行必须为空或大于零(得到0)";在使用jacoco构建声纳的过程中,sonarqube,jacoco,sonarqube5.1,jacoco-maven-plugin,Sonarqube,Jacoco,Sonarqube5.1,Jacoco Maven Plugin,我已经将sonar java插件升级到3.7。我们使用内置的jacoco插件来完成代码覆盖。我们使用maven target org.jacoco:jacoco-maven插件:prepare-agent和sonar:sonar从jenkins作业中触发声纳构建。但是,升级后我收到以下错误: Caused by: java.lang.IllegalArgumentException: Line must be null or greater than zero (got 0) at co
Caused by: java.lang.IllegalArgumentException: Line must be null or greater than zero (got 0)
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:88)
at org.sonar.api.issue.internal.DefaultIssue.setLine(DefaultIssue.java:251)
at org.sonar.core.issue.DefaultIssueBuilder.build(DefaultIssueBuilder.java:127)
at org.sonar.core.issue.DefaultIssueBuilder.build(DefaultIssueBuilder.java:34)
at org.sonar.java.SonarComponents.addIssue(SonarComponents.java:207)
at org.sonar.java.bytecode.visitor.DefaultBytecodeContext.reportIssue(DefaultBytecodeContext.java:59)
at org.sonar.java.checks.UnusedPrivateMethodCheck.visitMethod(UnusedPrivateMethodCheck.java:74)
at org.sonar.java.bytecode.BytecodeVisitorNotifier.callVisitMethod(BytecodeVisitorNotifier.java:68)
at org.sonar.java.bytecode.BytecodeVisitorNotifier.callVisitMethodAndFieldAndEdge(BytecodeVisitorNotifier.java:49)
at org.sonar.java.bytecode.BytecodeVisitorNotifier.notifyVisitors(BytecodeVisitorNotifier.java:42)
at org.sonar.java.bytecode.BytecodeScanner.notifyBytecodeVisitors(BytecodeScanner.java:80)
... 57 more
以下是随SonarQube 5.1.2版一起安装的插件详细信息:
- Java 3.7
- LDAP 1.3
- Git 1
- SVN 1
- 科贝图拉1.6.3
我们正在使用sonar maven插件:2.7.1。您能提供stacktrace吗?您可能面临这个问题:我在问题中添加了堆栈跟踪。请核实。这看起来像是您建议的问题,我们将不得不等待3.8的更新。不过,只要验证一下就可以了。是的,这是同一个问题。sonar java插件3.7.1即将发布一个错误修复版本。我看到售票处关门了。我们什么时候可以获得3.7.1版本的更新?