Menu

#181 maven cobertura exceptions when upgrading to 2.5.2

open
nobody
None
5
2012-09-29
2012-09-29
Tom Vaughan
No

Environment: maven 2.2, java 1.6.0_33

Upgrading our maven-cobertura-plugin dependency from 2.3 to 2.5.2 results in every test failing with error:
java.lang.NoSuchMethodError: net.sourceforge.cobertura.coveragedata.ProjectData.getGlobalProjectData()Lnet/sourceforge/cobertura/coveragedata/ProjectData

The effective-pom of the artifact being compiled includes these relevant versions of dependencies:

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.5.2</version>
<dependencies>
<dependency>
<groupId>net.sourceforge.cobertura</groupId>
<artifactId>cobertura</artifactId>
<version>1.9.3</version>
<scope>compile</scope>
<exclusions>
<exclusion>
<artifactId>commons-collections</artifactId>
<groupId>commons-collections</groupId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</plugin>

And then my own explicitly defined commons-collection, just FYI:
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2.1</version>
</dependency>

Discussion


Log in to post a comment.