beckje01/grails-code-coverage — pull request #25 by nikolajbrinch (2014-05-28 22:26:08+00:00)
Title: Fixed upgrade of cobertura to version 2.0.3.

Cobertura 2.0.3 uses ASM 4.1, and since Grails uses 3.3.1
Grails puts version 3.3.1 on the system classpath, and cobertura builds it's classpath for launching the instrumentation, from the system classpath. This means that the Grails ASM (version 3.3.1) is first on the classpath, and that version is incompatible with cobertura.
Maven cannot resolve this (neither can Ivy), since ASM changed groupId between versions, making the two version to different artefacts.

The solution implemented is to launch Ant in a separate JVM with the Grails test classpath, where ASM 3 has been stripped of, and run the cobertura Ant Task InterumentTask from there.