0%

maven打包时跳过测试用例

mvn clean package -Dmaven.test.skip=true

1
2
3
4
5
6
7
8
[INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) @ springboot-mybatis ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ springboot-mybatis ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.20.1:test (default-test) @ springboot-mybatis ---
[INFO] Tests are skipped.

不拷贝,不编译test文件夹里面的内容了。