我想在Ammonite中运行这个SBT命令:
sbt -mem 3000 clean compile docker:publishLocal我尝试了一些方法,比如:
%.sbt("-mem 3000", 'clean, 'test)(pwd)这给出了这个例外:
[error] Expected symbol
[error] Not a valid command: -
[error] Expected end of input.
[error] Expected '--'
[error] Expected 'debug'
[error] Expected 'info'
[error] Expected 'warn'
[error] Expected 'error'
[error] Expected 'addPluginSbtFile'
[error] -mem 3000
[error] ^这是怎么做的?
发布于 2019-07-30 20:43:35
我最近做了同样的事情,我可以告诉你,当这些“随机”错误发生时,这并不有趣。
// I had to put the full path where sbt is, like this
val SBT = "C:\\Program Files (x86)\\sbt\\bin\\sbt.bat"
%(SBT, "-mem", "3000", "clean", "compile", "docker:publishLocal")(pwd)因此,解决方案是:
%.sbt("-mem", "3000", 'clean, 'test)(pwd)https://stackoverflow.com/questions/57271771
复制相似问题