Cobertura reporting plugin does not co-exist with Emma plugin
-------------------------------------------------------------
Key: MCOBERTURA-125
URL: http://jira.codehaus.org/browse/MCOBERTURA-125
Project: Maven 2.x Cobertura Plugin
Issue Type: Bug
Affects Versions: 2.4
Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
Java version: 1.6.0_10
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux" version: "2.6.16.46-0.12-smp" arch: "amd64" Family: "unix"
Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
Java version: 1.6.0_20
Default locale: en_GB, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
Reporter: Sergei Ivanov
When Cobertura plugin is run *after* Emma plugin, it fails to instrument java
classes. It complains of a lack of debug information and eventually this leads
to JUnit failure with the following error description:
initializationError
java.lang.ClassFormatError: Invalid length 65528 in LocalVariableTable
in class file <file name>
Because of MCOBERTURA-103, surefire report for the project gets screwed up as
well.
If I place Cobertura *before* Emma, then everything works fine:
Fragment of <reporting> section of the pom that works:
{code:xml}
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.4</version>
<inherited>true</inherited>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>emma-maven-plugin</artifactId>
<inherited>true</inherited>
</plugin>
{code}
Fragment of <reporting> section of the pom that *does not* work:
{code:xml}
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>emma-maven-plugin</artifactId>
<inherited>true</inherited>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.4</version>
<inherited>true</inherited>
</plugin>
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email