Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使目标“包”依赖于目标“测试”?
这里有一个解决方案:Force sbt 0.11 to run tests 但它并不真正适用于 xsbt-web-plugin。
这是我所做的:
Keys.`package` <<= (test in Test, Keys.`package` in Compile) map { (_, in) => println("after package & test") in }
它运行测试,如果测试成功,则运行包任务。(在全新安装的 lift-2.5-RC2 上测试)