2014-03-01 69 views
1

我试图将我的Pl​​ay应用程序推向Heroku,它在开发中工作正常,但Heroku抱怨说它无法找到此库:AWSScala。我在做什么错&有什么可以解决这个问题?Scala/SBT:未解析的依赖关系

Build.sbt:

resolvers += "Sonatype Snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/" 

    libraryDependencies ++= Seq(
     "com.github.seratch" %% "awscala" % "[0.2,)" 
    ) 

完整的错误:

sbt.ResolveException: unresolved dependency: com.github.seratch#awscala_2.10;[0.2,): not found 
+0

尝试解析器+ = “Sonatype的OSS快照” 在“https://oss.sonatype.org/内容/存储库/快照“ libraryDependencies + =”com.github.seratch“%%”awscala“%”0.2.0-SNAPSHOT“ – immutable

+0

@Gopal现在,我得到'com.github.seratch#awscala_2.10; 0.2.0-SNAPSHOT:找不到' – goo

+0

你已经添加了解析器?... – immutable

回答

0

的神器是不是reposiroty Sonatype的OSS花絮:看http://oss.sonatype.org/content/repositories/snapshots/com/github/seratch/awscala_2.10/

但它是http://repo1.maven.org/maven2/com/github/seratch/awscala_2.10/0.2.0

所以,一个工作的构建文件(来自新播放F的buit.sbt) ramework项目):

$ cat build.sbt 
    name := "foo" 

    version := "1.0-SNAPSHOT" 

    libraryDependencies ++= Seq(
     jdbc, 
     anorm, 
     cache, 
     "com.github.seratch" %% "awscala" % "[0.2,)" 
    ) 

    play.Project.playScalaSettings 

解析器repo1.maven.org默认情况下在SBT包括:看http://www.scala-sbt.org/release/docs/Detailed-Topics/Resolvers.html#predefined

+0

好吧,我删除了解析器,我仍然在使用com。 github.seratch#awscala_2.10; [0.2,):未找到# – goo

+0

试着编辑你〜/ .sbt/repositories文件。例如,添加此行(如果不存在):'maven-central:http:// repo1.maven.org/maven2 /'。看到这个:http://www.scala-sbt.org/0.13.0/docs/Detailed-Topics/Proxy-Repositories.html哪个版本的Scala? (播放框架?) – yesnault

+0

谢谢,这工作。奇怪它如何在没有它的开发工作,虽然.. – goo