frmsというサンプルをrunしたときのエラーの対処法
ここのサイトを参考にしてfinagleのサンプルを動かそうとしたときのエラーの対処法
http://nihito.tumblr.com/post/12784840757/finagle-twitter-restapi-1
sbt runすると以下エラーが。
[warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: UNRESOLVED DEPENDENCIES :: [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: com.mongodb.casbah#casbah_2.9.0-1;2.1.5.0: not found [warn] :: org.specs2#specs2_2.9.1;1.6-SNAPSHOT: not found [warn] :::::::::::::::::::::::::::::::::::::::::::::: [error] {file:/home/tgoto/finagle/frms/}default-379f5b/*:update: sbt.ResolveException: unresolved dependency: com.mongodb.casbah#casbah_2.9.0-1;2.1.5.0: not found [error] unresolved dependency: org.specs2#specs2_2.9.1;1.6-SNAPSHOT: not found [error] Total time: 89 s, completed 2013/10/27 22:54:38 [frms]>
com.mongodb.casbahと
org.specs2がないということで、
mangodbについては、bilud.sbtのresolversに下2つの行を追加。
resolvers ++= Seq( "twitter-repo" at "http://maven.twttr.com", "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/", "snapshots" at "https://oss.sonatype.org/content/repositories/snapshots", "releases" at "https://oss.sonatype.org/content/groups/scala-tools" )
specs2については、bilud.sbtのlibraryDependenciesのversion指定を以下に変更
"org.specs2" %% "specs2" % "latest.integration" % "test",
latest.integrasionというのが最新版を引っ張ってくれる方法らしい。
それにしてもspecs2って何だろう。