maven install 不编译test文件

来源:互联网 发布:新手模拟钢琴软件 编辑:程序博客网 时间:2024/05/20 18:52
方式1:用命令带上参数

mvn install -Dmaven.test.skip=true

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

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