I too had this (albeit with Java 8 rather than 7) and the problem appears to be that cobertura itself depends on an ancient version of xerces (2.6.2 - via Jaxen). As a workaround, I added a test depedency to my POM:

        <!-- Need to add this to override the version provided by Cobertura -->
        <dependency>
            <groupId>xerces</groupId>
            <artifactId>xercesImpl</artifactId>
            <version>2.11.0</version>
            <scope>test</scope>
        </dependency>

I couldn't find a way just to add the dep to the cobertura-maven-plugin configuration, but practically, it doesn't matter since the classpath is all the same when running the tests under cobertura.

I imagine that we should file a bug upstream to have Cobertura upgrade?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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

Reply via email to