Hi Kesav,

this should do the Job for the prepare-agent goal:

<configuration>
  <excludes>
    <exclude>*</exclude>
  </excludes>
</configuration>

But if you use offline-instrumention there is no need for a agent, you can simply put it on the classpath. See this example in our documentation:

http://www.eclemma.org/jacoco/trunk/doc/examples/build/pom-offline.xml

Regards,
-marc

On 12.10.16 13:01, yajvane wrote:
Hi,

In order to get the coverage for power mock(mockito) based test cases ., tried offline Instrumentation and looks it is working fine. However seeing this exception multiple times on console (Caused by: java.lang.IllegalStateException: Class x/y/z is already instrumented).

As per the jacoco documentation related to offline instrumentation: ( http://www.eclemma.org/jacoco/trunk/doc/offline.html) it looks there is an optional parameter "excludes=*" that can be used to stop this exception continuously getting popped-up on console. How to specify this optional parameter as part of jacoco-maven-plugin:prepare-agent goal ?? (http://www.eclemma.org/jacoco/trunk/doc/prepare-agent-mojo.html) . I tried different ways but any syntax is not working fine.

command trying to use:
mvn org.jacoco:jacoco-maven-plugin:prepare-agent*["excludes=*]* test -Dmaven.test.failure.ignore=true


Thanks for all the help.

-Regards,
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 jacoco+unsubscr...@googlegroups.com <mailto:jacoco+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/81a09199-e8b9-489f-bcf0-74e1e4b98b83%40googlegroups.com <https://groups.google.com/d/msgid/jacoco/81a09199-e8b9-489f-bcf0-74e1e4b98b83%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 jacoco+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/b1035013-0b15-2a52-2cc1-8a36a60c5e3c%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to