spring boot maven 略过 test
2017-11-28 21:17
375 查看
spring boot 项目在用maven打包时会自动执行单元测试test。这个功能有时很有用,但是有时候打包时不想执行test,这时就需要省略test。
maven 官网有省略test的详细说明,链接为http://maven.apache.org/plugins-archives/maven-surefire-plugin-2.12.4/examples/skipping-test.html
spring boot的spring-boot-maven-plugin中已经引入了maven-surefire-plugin所以如果需要默认略过test,只需要在pom文件中加入如下属性
maven 官网有省略test的详细说明,链接为http://maven.apache.org/plugins-archives/maven-surefire-plugin-2.12.4/examples/skipping-test.html
spring boot的spring-boot-maven-plugin中已经引入了maven-surefire-plugin所以如果需要默认略过test,只需要在pom文件中加入如下属性
<properties> <skipTests>true</skipTests> </properties>
相关文章推荐
- maven打包springboot项目跳过test文件夹
- spring-boot-maven-plugin 插件,关闭自动test
- Idea 打包maven项目 以及spring boot 的自动配置
- Intellij IDEA springboot maven 配置mybatis-generator,自动从数据库中生成代码
- Maven 搭建spring boot多模块项目(附源码),亲测可以,感谢原创
- SpringBoot入门(maven为例)
- SpringBoot + MyBatis + MySQL + Maven在Intellij IDEA下开发环境的搭建
- 关于Springboot打包错误的问题 | Failed to execute goal org.springframework.boot:spring-boot-maven-plugin
- intellij idea maven springMVC和SpringBoot遇到的两个小问题
- 集成jcaptcha到spring-boot+maven项目中时出现java.lang.NoSuchMethodError: com.jhlabs.image.WaterFilter的问题的解决方法
- spring-boot-maven-plugin插件作用
- 加入spring-boot后导致maven的profile多环境配置失效的问题解决
- SpringBoot小白教程 (一): 使用Maven新建SpringBoot工程
- Maven之Spring_boot创建表结构
- Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.4.2.RELEASE:repackage (de
- maven springboot工程 jar包使用ProGuard 混淆代码
- Spring Boot 2.0 同步至 Maven 仓库出错,已撤回……
- springboot\maven 页面图片展示商品实现分页
- springBoot maven快速构建项目
- Springboot Gitlab Jenkins Maven Docker 持续集成/持续交付