cobertura java,使用Java 8的cobertura-maven-plugin

Is it just me or the cobertura-maven-plugin doesn't work with java 8? when it runs I get

[INFO] --- cobertura-maven-plugin:2.6:instrument (default) @ provider-impl ---

[INFO] Cobertura 2.0.3 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file

[cobertura] WARN [main] net.sourceforge.cobertura.instrument.CoberturaInstrumenter - Unable to instrument file /var/lib/jenkins/workspace/BranchBuilder/implementations/provider-impl/target/generated-classes/cobertura/com/foo/impl/internal/ServiceProviderImpl$JoinRunner.class

java.lang.IllegalArgumentException

at org.objectweb.asm.ClassReader.(Unknown Source)

at org.objectweb.asm.ClassReader.(Unknown Source)

at org.objectweb.asm.ClassReader.(Unknown Source)

at net.sourceforge.cobertura.instrument.CoberturaInstrumenter.instrumentClass(CoberturaInstrumenter.java:147)

at net.sourceforge.cobertura.instrument.CoberturaInstrumenter.instrumentClass(CoberturaInstrumenter.java:121)

at net.sourceforge.cobertura.instrument.CoberturaInstrumenter.addInstrumentationToSingleClass(CoberturaInstrumenter.java:234)

at net.sourceforge.cobertura.instrument.Main.addInstrumentationToSingleClass(Main.java:298)

at net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:307)

at net.sourceforge.cobertura.instrument.Main.parseArguments(Main.java:399)

I know there were issues with ASM and java 8 so I suspect the issue is that the maven-plugin has not been updated to use a java-8 compatible version of ASM

For reference, I asked the question here but got no answer

Has anyone managed to use cobertura-maven-plugin with java 8?

解决方案

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值