maven 跳过单元测试

方法1

命令中指定,如:

$ mvn clean package -Dmaven.test.skip=true

方法2

pom.xml 中指定:


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

你可能感兴趣的:(maven 跳过单元测试)