未能在 build.sbt 中包含 com.typesafe(用于 Scala 和 Heroku 上的喷雾) [英] Failing to include com.typesafe in build.sbt (for Scala and spray on Heroku)

查看:24
本文介绍了未能在 build.sbt 中包含 com.typesafe(用于 Scala 和 Heroku 上的喷雾)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在 Heroku 上引导我的样板 Scala Spray 项目,我正在尝试为我的本地项目添加必要的调整根据 Heroku 文档.喷雾样板项目源自 github 上的优秀模板,该模板工作简单,代码优雅,包括测试.

Trying to bootstrap my boilerplate Scala Spray project on Heroku, I am trying to add the necessary tweaks to my local project as per the Heroku documentation. The spray boilerplate project has been derived from the excellent template at github that simply works and has elegant code and tests included.

在最后提到的模板项目运行良好之后,将行 import com.typesafe.startscript.StartScriptPlugin 添加到我的 build.sbt 时,任何 sbt 命令现在失败了:

After the last mentioned template project worked great, when adding the line import com.typesafe.startscript.StartScriptPlugin to my build.sbt, any sbt command now fails with:

/build.sbt:1: 错误:对象类型安全不是包 com 的成员导入 com.typesafe.startscript.StartScriptPlugin^[error] 表达式类型错误

在 Ubuntu 桌面 13.04 上,我尝试安装 完整的类型安全堆栈,尽管到目前为止,其他一切都只能在本地安装更新版本的 sbt 时工作.但是解决这个错误的尝试并没有改变任何东西.就我而言,这似乎将准备好 Heroku 置于死胡同.

Being on Ubuntu desktop 13.04, I tried installing the full typesafe stack, although everything else worked with only a local installation of a more recent version sbt till this point. But this attempt at getting this error solved doesn't change anything. Which seems in my case to place getting-ready-for-Heroku at a dead end.

我想这个集成问题可能很容易确定,但这里有太多的移动部件,也许有一个简单的见解可以让我在这里解开......感觉在谷歌上我可能是唯一的遇到过这个特定问题的人......但也许解决方案对你来说很简单.

I guess this integration problem may be simple to nail down, but there's too many moving parts for me here and maybe there's a simple insight that can get me unstuck here... it feels on Google like I'm probably the only one having encountered this specific problem.... but maybe the solution is dead simple for you.

推荐答案

看起来这种组合适用于 sbt 0.12.0 但不适用于 0.12.4 和 0.13.0.... 将 sbt 项目更改为 0.12.0 就可以了工作.

Looks like this combination works with sbt 0.12.0 but not 0.12.4 nor 0.13.0.... changing the sbt project to 0.12.0 makes it work.

这篇关于未能在 build.sbt 中包含 com.typesafe(用于 Scala 和 Heroku 上的喷雾)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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