三种方式
1.用命令的方式
mvn install -Dmaven.test.skip=true
2.在pom.xml中配置
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin>
<build> <finalName>${project.artifactId}</finalName> <plugins>########################## <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin> </plugins> </build> </project>
3.idea可以在打包时将skip test按钮按下,然后再install
本文由傻鸟发布,不代表傻鸟立场,转载联系作者并注明出处:https://shaniao.net/yingyong/339.html