MAVEN项目添加junit4测试用例

因为默认的maven项目支持的是junit3,所以在使用注解annotation的时候;会使用本地eclipse的jar包,导致在maven install的时候报错。



    
        junit
        junit
        4.4
    



 
 
 

     maven-compiler-plugin??
    
         1.5
        1.5
    

 



org.apache.maven.surefire
 surefire-junit4
 2.4.3
 
 false
 true
 

 



你可能感兴趣的:(maven,junit4)