您的位置:首页 > 其它

maven编译的时候跳过test

2016-04-19 16:24 417 查看
原文地址: /article/3539984.html

有2种方式

方式1:用命令带上参数

mvn install -Dmaven.test.skip=true

方式2:在pom.xml里面配置

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: