我正在按照教程在此处使用 Heroku 创建 scala Web 应用程序:https ://devcenter.heroku.com/articles/scala
我已经完全复制了那里的例子,但是当我运行时
sbt clean compile stage
由于以下错误,它无法编译:
[error] /home/ajcrites/dev/dyl/src/main/scala/Web.scala:1: object jboss is not a member of package org
[error] import org.jboss.netty.handler.codec.http.{HttpRequest, HttpResponse}
[error] ^
[error] /home/ajcrites/dev/dyl/src/main/scala/Web.scala:2: object twitter is not a member of package com
[error] import com.twitter.finagle.builder.ServerBuilder
[error] ^
[error] /home/ajcrites/dev/dyl/src/main/scala/Web.scala:3: object twitter is not a member of package com
[error] import com.twitter.finagle.http.{Http, Response}
[error] ^
[error] /home/ajcrites/dev/dyl/src/main/scala/Web.scala:4: object twitter is not a member of package com
[error] import com.twitter.finagle.Service
[error] ^
[error] /home/ajcrites/dev/dyl/src/main/scala/Web.scala:5: object twitter is not a member of package com
[error] import com.twitter.util.Future
[error] ^
[error] 5 errors found
基本上,我认为这与我拥有的软件包中不可用或不可用或其他东西有关。但是,我不知道如何安装 finagle,上面的教程和https://github.com/twitter/finagle都没有说明
我该怎么做才能编译它?