【问题标题】:Failing to include com.typesafe in build.sbt (for Scala and spray on Heroku)未能在 build.sbt 中包含 com.typesafe(用于 Scala 和 Heroku 上的喷雾)
【发布时间】:2013-11-15 22:20:50
【问题描述】:

试图在 Heroku 上引导我的样板 Scala Spray 项目,我正在尝试按照 the Heroku documentation 向我的本地项目添加必要的调整。喷雾样板项目源自 excellent template at github,它简单有效,包含优雅的代码和测试。

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

/build.sbt:1: error: object typesafe is not a member of package com import com.typesafe.startscript.StartScriptPlugin ^ [error] Type error in expression

在 Ubuntu 桌面 13.04 上,我尝试安装 the full typesafe stack,尽管到目前为止,其他所有东西都只能在本地安装更新版本的 sbt。但是解决这个错误的尝试并没有改变任何东西。就我而言,这似乎将准备好 Heroku 置于死胡同。

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

【问题讨论】:

    标签: scala heroku sbt typesafe-stack


    【解决方案1】:

    看起来这种组合适用于 sbt 0.12.0,但不适用于 0.12.4 和 0.13.0.... 将 sbt 项目更改为 0.12.0 即可。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多