General

General
How do I force a different emma jar to be used?

If you want to upgrade the version used by the plugin, you will need to use a jar override to force the emma plugin to use the updated JAR.

eg: To use a local copy of the EMMA jars, add this to project.properties:

maven.jar.override=on
maven.jar.emma=lib/emma-x.y.z.jar
maven.jar.override=on
maven.jar.emma_ant=lib/emma_ant-x.y.z.jar

eg: To use version 1.2.3 from the repository, add this to project.properties:

maven.jar.override=on
maven.jar.emma=lib/emma-1.2.3.jar
maven.jar.override=on
maven.jar.emma_ant=lib/emma_ant-1.2.3.jar
My system properties aren't passed to my tests when I use the EMMA plugin!
Be aware that the EMMA plugin forces maven to run tests in a forked JVM, by setting the maven.junit.fork property equal to true while EMMA is enabled. This means that any Java system properties that you need to have available to your tests must be explicitly defined using the maven.junit.jvmargs property. See the properties for the Maven Test Plugin for more info.