sbt程序集在同一个包中找不到类型

时间:2015-06-11 14:23:26

标签: scala sbt spray sbt-assembly

我有这里显示的代码 http://scastie.org/10156

报告错误

when running sbt 0.13.8
plugin assembly
I get
[error] /home/xx/workspace/sync-hsae-middleware/src/test/scala/com/example/MyServiceSpec.scala:8: not found: type MyService
[error] class MyServiceSpec extends Specification with Specs2RouteTest with MyService {
[error]                                                                     ^
[error] /home/xx/workspace/sync-hsae-middleware/src/test/scala/com/example/MyServiceSpec.scala:14: not found: value myRoute
[error]       Get() ~> myRoute ~> check {
[error]                ^
[error] two errors found
[error] (test:compileIncremental) Compilation failed
[error] Total time: 5 s, completed 10/06/2015 15:00:15

*/

我无法弄清楚是什么问题因为我使用的时候 sbt运行它很好。

0 个答案:

没有答案