如何在不从命令行测试的情况下运行 sbt 汇编命令? [英] How run sbt assembly command without tests from command line?

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

问题描述

我已阅读问题:this那个.他们建议修改 sbt 文件.但我想在没有测试的情况下运行 sbt clean assembly 并且不修改 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 汇编命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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