(1)进行打包时添加跳过测试类的命令
-Dmaven.test.skip=true
全部命令如下:
mvn clean install -Dmaven.test.skip=true
(2)在pom.xml文件中添加跳过测试类的插件
2、包含空文件夹org.apache.maven.plugins maven-surefire-plugin2.18.1 true
Maven在打包时默认是不会将空文件夹打包进去的。这时候,需要在maven-war-plugin中加一个配置,如下:
注:这个参数maven-war-plugin 2.4或以上的版本才支持。
org.apache.maven.plugins maven-war-plugin${maven.war.version} true



