That's correct as per documentation http://www.eclemma.org/jacoco/trunk/doc/prepare-agent-mojo.html#excludes
On Tuesday, November 15, 2016 at 10:52:25 AM UTC+1, yajvane wrote: > > > It looks I can NOT list set of classes to be ignored in command line. > correct ? It looks there is no User Property defined for excludes/includes > similar to skip (jacoco.skip). Believe need to change pom.xml to define > classes to be ignored. rt? > > -Best Regards, > Kesav. > On Tuesday, November 15, 2016 at 1:56:30 PM UTC+5:30, Marc R. Hoffmann > wrote: >> >> Hi, >> >> this is a known issue that can happen for very large methods: >> https://github.com/jacoco/jacoco/pull/177 >> >> The only work around for now is to exclude the problematic class >> ("ConfigDAO"). >> >> Regards, >> -marc >> >> On 15.11.16 07:40, yajvane wrote: >> >> Hi, >> Trying to instrument using command "mvn >> org.jacoco:jacoco-maven-plugin:instrument" & here is the exception thrown. >> >> [ERROR] Failed to execute goal >> org.jacoco:jacoco-maven-plugin:0.7.7.201606060606:instrument (default-cli) >> on project PSP-Commons: Unable to instrument file. Error while >> instrumenting class >> /workspace/mbagalko_denalibr/psc/branches/psc_denali_br/psp/src/psp/components/commons/target/classes/com/cisco/epm/pap/api/services/persistance/dao/ConfigDAO.class. >> >> java.lang.ClassNotFoundException: >> com.cisco.epm.pap.api.vo.AuthenticationConfig -> [Help 1] >> >> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute >> goal org.jacoco:jacoco-maven-plugin:0.7.7.201606060606:instrument >> (default-cli) on project PSP-Commons: Unable to instrument file. >> >> at >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) >> >> at >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) >> >> at >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) >> >> at >> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) >> >> at >> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) >> >> at >> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) >> >> at >> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) >> >> at >> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) >> >> at >> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) >> >> at >> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) >> >> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) >> >> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) >> >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) >> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native >> Method) >> >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) >> >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> >> at java.lang.reflect.Method.invoke(Method.java:483) >> >> at >> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) >> >> at >> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) >> >> at >> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) >> >> at >> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) >> >> Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to >> instrument file. >> >> at >> org.jacoco.maven.InstrumentMojo.executeMojo(InstrumentMojo.java:85) >> >> at >> org.jacoco.maven.AbstractJacocoMojo.execute(AbstractJacocoMojo.java:63) >> >> at >> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) >> >> at >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) >> >> ... 20 more >> >> Caused by: java.io.IOException: Error while instrumenting class >> /workspace/mbagalko_denalibr/psc/branches/psc_denali_br/psp/src/psp/components/commons/target/classes/com/cisco/epm/pap/api/services/persistance/dao/ConfigDAO.class. >> >> at >> org.jacoco.core.instr.Instrumenter.instrumentError(Instrumenter.java:160) >> >> at >> org.jacoco.core.instr.Instrumenter.instrument(Instrumenter.java:111) >> >> at >> org.jacoco.core.instr.Instrumenter.instrument(Instrumenter.java:152) >> >> at >> org.jacoco.maven.InstrumentMojo.executeMojo(InstrumentMojo.java:83) >> >> ... 23 more >> >> Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: >> com.cisco.epm.pap.api.vo.AuthenticationConfig >> >> at >> org.objectweb.asm.ClassWriter.getCommonSuperClass(ClassWriter.java:1719) >> >> at >> org.objectweb.asm.ClassWriter.getMergedType(ClassWriter.java:1689) >> >> at org.objectweb.asm.Frame.merge(Frame.java:1426) >> >> at org.objectweb.asm.Frame.merge(Frame.java:1325) >> >> at >> org.objectweb.asm.MethodWriter.visitMaxs(MethodWriter.java:1475) >> >> at >> org.objectweb.asm.ClassReader.readCode(ClassReader.java:1567) >> >> at >> org.objectweb.asm.ClassReader.readMethod(ClassReader.java:1017) >> >> at >> org.objectweb.asm.ClassReader.accept(ClassReader.java:693) >> >> at >> org.objectweb.asm.ClassReader.accept(ClassReader.java:506) >> >> at >> org.objectweb.asm.ClassWriter.toByteArray(ClassWriter.java:995) >> >> at >> org.jacoco.core.instr.Instrumenter.instrument(Instrumenter.java:85) >> >> at >> org.jacoco.core.instr.Instrumenter.instrument(Instrumenter.java:108) >> >> ... 25 more >> >> [ERROR] >> >> [ERROR] >> >> [ERROR] For more information about the errors and possible solutions, >> please read the following articles: >> >> [ERROR] [Help 1] >> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException >> >> >> The same is working fine for other maven projects. It is failing only in >> this case. Also, it looks stack trace is pointing to " >> org.jacoco.core.instr.Instrumenter.instrument(Instrumenter.java:108)" >> . What may be the root cause of this ?? >> >> -Thanks, >> Kesav. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "JaCoCo and EclEmma Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jacoco/ed99f704-9df6-4854-a005-754af87b32b3%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jacoco/ed99f704-9df6-4854-a005-754af87b32b3%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> >> >> -- You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/1efabdd3-db07-4c90-a018-44206ce76acf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
