maven中去掉单元测试的配置

xiaoxiao2021-02-28  63

如果是在命令行中去掉测试,可以在命令行中输入:mvn install -Dmaven.test.skip=true

在pom.xml

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

项目中的一段配置如下:

转载请注明原文地址: https://www.6miu.com/read-43737.html

最新回复(0)