IDEA使用maven打包Java项目,跳过test的3种方法
·
第一种:命令行
命令行的方式,在哪输入命令都行。
mvn install -Dmaven.test.skip=true



第二种:pom.xml设置
修改pom.xml文件
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
第三种:IDEA工具操作
选中小闪电,test就被划掉了。然后点击install就会跳过test了

转自:https://blog.csdn.net/qq_42222230/article/details/105685293
更多推荐
所有评论(0)