无需测试的Maven软件包/安装(跳过测试) [英] Maven package/install without test (skip tests)
本文介绍了无需测试的Maven软件包/安装(跳过测试)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试打包我的项目.但是,它会自动运行以前执行打包的测试.测试将一些内容插入数据库.这不是我想要的,我需要避免在打包应用程序时运行测试.有人知道如何在没有测试的情况下运行该程序包吗?
I am trying to package my project. But, it automatically runs the tests previous do performing the packaging. The tests insert some content in the database. This is not what I want, I need to avoid running tests while package the application. Anybody knows how run the package with out test?
推荐答案
使用
mvn -Dmaven.test.skip=true package
这篇关于无需测试的Maven软件包/安装(跳过测试)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文