Cobertura doesn't work with Java 7

后端 未结 3 2033
我寻月下人不归
我寻月下人不归 2021-01-19 01:23

I am using maven 3.0.4, JRE 1.7.0_09. When I use mvn clean install all my tests passes and everything looks good - here is my surefire plugin confi

3条回答
  •  不知归路
    2021-01-19 01:35

    Further to this, the issue we had was to do with Cobertura and the version of Xalan/Xerces.

    Looking at http://mojo.codehaus.org/cobertura-maven-plugin/dependencies.html, it can be seen that the cobertura plugin has Transitive Dependencies on Xalan 2.6.0 & Xerces at 2.6.2.

    To combat this, I added:

    
        xalan
        xalan
        2.7.1
        test
    
    
        xerces
        xercesImpl
        2.11.0
        test
    
    

    And the tests passed, both during the initial test phase with surefire and the cobertura phase.

提交回复
热议问题