IDEA maven打包 跳过test测试的方法

命令行方式

在idea的Terminal窗口中执行如下命令

mvn install -Dmaven.test.skip=true

IDEA maven打包 跳过test测试的方法

修改POM文件方式

pom.xml配置文件添加插件如下

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <configuration>
        <skip>true</skip>
    </configuration>
</plugin>

IDEA maven打包 跳过test测试的方法

界面操作方式

idea右侧--打开maven弹框--工具栏头部选中小闪电图标即可
IDEA maven打包 跳过test测试的方法

上一篇:如何帮助金融客户“用好云”?


下一篇:SpringCloud-Eureka