无法部署Scala应用:

时间:2018-05-31 22:04:48

标签: scala heroku sbt

我正在尝试将以下应用部署到Heroku https://github.com/matth/juicer。当我从克隆文件夹运行git push heroku master时,出现以下错误:

[warn]   ::::::::::::::::::::::::::::::::::::::::::::::
remote:        [warn]   ::          UNRESOLVED DEPENDENCIES         ::
remote:        [warn]   ::::::::::::::::::::::::::::::::::::::::::::::
remote:        [warn]   :: com.eed3si9n#sbt-assembly;0.8.7: not found
remote:        [warn]   ::::::::::::::::::::::::::::::::::::::::::::::
remote:        [warn] 
remote:        [warn]   Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
remote:        [warn]           com.eed3si9n:sbt-assembly:0.8.7 (sbtVersion=0.11.3, scalaVersion=2.9.1)
remote:        [warn] 
remote:        [error] {file:/tmp/scala_buildpack_build_dir/project/plugins/}default-e1a97d/*:update: sbt.ResolveException: unresolved dependency: com.eed3si9n#sbt-assembly;0.8.7: not found

我尝试修改我的build.sbt文件,但似乎没有任何效果。这是build.sbt中的project/plugins

import Defaults._

resolvers += Classpaths.typesafeResolver

resolvers += Resolver.url("artifactory", url("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)

addSbtPlugin("com.typesafe.startscript" % "xsbt-start-script-plugin" % "0.5.2")

addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.8.7")

1 个答案:

答案 0 :(得分:1)

https://repo.scala-sbt.org/

  

repo.scala-sbt.org这是sbt社区的重定向服务   库。为了使自己免于未来的迁移,请使用   代理URL而不是重定向的位置(当前   https://dl.bintray.com):

     

Resolver.sbtPluginRepo("版本&#34)   https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/

我建议使用该网址,而不是artifactoryonline。

resolvers += Resolver.sbtPluginRepo("releases")