IDEA使用maven打包Java项目,跳过test的3种方法 文章目录第一种命令行第二种pom.xml设置第三种IDEA工具操作第一种命令行命令行的方式在哪输入命令都行。mvninstall-Dmaven.test.skiptrue第二种pom.xml设置修改pom.xml文件buildpluginsplugingroupIdorg.apache.maven.plugins/groupIdartifactIdmaven-surefire-plugin/artifactIdconfigurationskiptrue/skip/configuration/plugin/plugins/build第三种IDEA工具操作选中小闪电test就被划掉了。然后点击install就会跳过test了转自https://blog.csdn.net/qq_42222230/article/details/105685293