Cobertura doesn't work with Java 7

后端 未结 3 2030
我寻月下人不归
我寻月下人不归 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:31

    We are using Cobertura plugin version 2.6 with Java 7 with no problems. This includes some files with Java 7 syntax (multi-catch, e.g.) which used to fail with the earlier plugin version. Nor do I need to use -XX:-UseSplitVerifier in the SureFire plugin any longer.

    
        2.6
        2.12
    
    
        
            
                
                    org.apache.maven.plugins
                    maven-surefire-plugin
                    ${mavenSurefirePlugin}
                
            
        
    
    
        
            
                org.codehaus.mojo
                cobertura-maven-plugin
                ${coberturaMavenPlugin}
                
                    true
                
            
        
    
    

提交回复
热议问题