我已经阅读了问题: 这个和 那个。他们建议修改 sbt 文件。但是我想运行 sbt clean assembly没有测试,不修改 sbt 构建文件。可以用 sbt 吗?在 Maven 中有 -DskipTest=true参数,是否有 sbt 的模拟参数?
sbt clean assembly
-DskipTest=true
For any properties you need to change on the command line, prepend them with "set ", and wrap them in quotes.
Example for Windows:
sbt "set test in assembly := {}" clean assembly
Example for Mac:
sbt 'set test in assembly := {}' clean assembly