如何在不通过命令行进行测试的情况下运行sbt Assembly命令? [英] How run sbt assembly command without tests from command line?

查看:210
本文介绍了如何在不通过命令行进行测试的情况下运行sbt Assembly命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已阅读以下问题: this 。他们建议修改sbt文件。但是我想运行 sbt清洁程序集而不进行测试,并且不要修改sbt构建文件。 sbt可能吗?在Maven中,有一个 -DskipTest = true 参数,是否有sbt的类似物?

I have read questions: this and that. They suggest to modify sbt file. But I want run sbt clean assembly without tests and do not modify sbt build files. Is it possible with sbt? In maven there is -DskipTest=true parameter, is there analog for sbt?

推荐答案

对于需要在命令行上更改的任何属性,请在它们之前加上 set,并用引号将其引起来。

For any properties you need to change on the command line, prepend them with "set ", and wrap them in quotes.

Windows示例:

Example for Windows:

sbt "set test in assembly := {}" clean assembly

Mac的示例:

sbt 'set test in assembly := {}' clean assembly

这篇关于如何在不通过命令行进行测试的情况下运行sbt Assembly命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆