它只是我或cobertura-maven-plugin不适用于java 8?当它运行我得到
[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)
我知道ASM和java 8存在问题所以我怀疑问题是maven-plugin还没有更新为使用兼容java-8的ASM版本
作为参考,我在这里问了这个问题,但没有得到答案
有没有人设法使用java 8的cobertura-maven-plugin?