【Java最佳实战记录】Maven打包跳过测试类

maven打包跳过测试类有三种方法

1.使用maven插件surefire插件


    
        
            org.apache.maven.plugins
            maven-surefire-plugin
            
                true
            
        
    

2.打包使用命令

mvn install -DskipTests

或者使用

mvn install -Dmaven.test.skip=true

你可能感兴趣的:(【Java最佳实战记录】Maven打包跳过测试类)