2

大家好,我正在尝试在 heroku 上向我的 play framework 2.0.4 应用程序添加一个新的 bonecp 版本,但我得到了

[info] downloading http://oss.sonatype.org/content/groups/public/com/jolbox/bonecp/0.8.0-rc2-SNAPSHOT/bonecp-0.8.0-rc2-20130128.135547-1.jar ...
       [info]   [SUCCESSFUL ] com.jolbox#bonecp;0.8.0-rc2-SNAPSHOT!bonecp.jar(bundle) (367ms)
       [warn]   [NOT FOUND  ] com.google.guava#guava;13.0.1!guava.jar (10ms)
       [warn] ==== Typesafe Releases Repository: tried
       [warn]   http://repo.typesafe.com/typesafe/releases/com/google/guava/guava/13.0.1/guava-13.0.1.jar
       [info] downloading http://repo.typesafe.com/typesafe/releases/org/slf4j/slf4j-api/1.7.2/slf4j-api-1.7.2.jar ...
       [info]   [SUCCESSFUL ] org.slf4j#slf4j-api;1.7.2!slf4j-api.jar (60ms)
       [warn]   ::::::::::::::::::::::::::::::::::::::::::::::
       [warn]   ::              FAILED DOWNLOADS            ::
       [warn]   :: ^ see resolution messages for details  ^ ::
       [warn]   ::::::::::::::::::::::::::::::::::::::::::::::
       [warn]   :: com.google.guava#guava;13.0.1!guava.jar
       [warn]   ::::::::::::::::::::::::::::::::::::::::::::::
       [error] {file:/tmp/build_16vgl6xi6x33j/}theapp/*:update: sbt.ResolveException: download failed: com.google.guava#guava;13.0.1!guava.jar
       [error] Total time: 8 s, completed Apr 19, 2013 10:37:35 AM
 !     Failed to build app with sbt
 !     Heroku push rejected, failed to compile Play 2.x - java app

它似乎无法在 typesafe 中找到 google guava。

我在本地工作,但不在heroku。解析器可能有问题,但我不知道是什么。

这是我的 Build.scala 配置:

val appDependencies = Seq(
                "com.google.api.client" % "google-api-data-youtube-v2" % "1.0.6-alpha",
                "com.google.gdata" % "core" % "1.47.1",
                "org.apache.commons" % "commons-io" % "1.3.2",
                "org.reflections" % "reflections" % "0.9.8",
                "mysql" % "mysql-connector-java" % "5.1.24",
                "org.scribe" % "scribe" % "1.3.2",
                "com.github.mumoshu" %% "play2-memcached" % "0.2.3-SNAPSHOT",
                "com.amazonaws" % "aws-java-sdk" % "1.3.11",
                "com.google.code.gson" % "gson" % "2.2.2",
                "com.rabbitmq" % "amqp-client" % "2.8.7",
                "com.google.javascript" % "closure-compiler" % "rr2079.1",
                "com.restfb" % "restfb" % "1.6.11",
                "com.typesafe" %% "play-plugins-mailer" % "2.0.4",
                "com.jolbox" % "bonecp" % "0.8.0-rc2-SNAPSHOT"
    )

val main = PlayProject(appName, appVersion, appDependencies, mainLang = JAVA).settings(
    resolvers += "Sonatype OSS Snapshots Repository" at "http://oss.sonatype.org/content/groups/public",
    resolvers += "Spy Repository" at "http://files.couchbase.com/maven2" // required to resolve `spymemcached`, the plugin's dependency.
)

谢谢你的帮助!

4

1 回答 1

0

现在可以修复了。几个小时前它在我身上失败了,但现在它可以工作了

于 2013-05-01T10:49:52.607 回答