我正在尝试在示例Play Framework应用程序中使用play-authenticate和deadbolt插件
我的build.sbt看起来像这样
scalaVersion:=" 2.11.0"
libraryDependencies ++= Seq(
javaJdbc,
javaEbean,
cache,
javaWs,
"be.objectify" %% "deadbolt-java" % "2.3.0-RC1",
"com.feth" %% "play-authenticate" % "0.6.1-SNAPSHOT"
)
resolvers ++= Seq(
Resolver.url("Objectify Play Repository (release)", url("http://schaloner.github.com/releases/"))(Resolver.ivyStylePatterns),
Resolver.url("Objectify Play Repository (snapshot)", url("http://schaloner.github.com/snapshots/"))(Resolver.ivyStylePatterns),
Resolver.url("play-easymail (release)", url("http://joscha.github.com/play-easymail/repo/releases/"))(Resolver.ivyStylePatterns),
Resolver.url("play-easymail (snapshot)", url("http://joscha.github.com/play-easymail/repo/snapshots/"))(Resolver.ivyStylePatterns),
Resolver.url("play-authenticate (release)", url("http://joscha.github.com/play-authenticate/repo/releases/"))(Resolver.ivyStylePatterns),
Resolver.url("play-authenticate (snapshot)", url("http://joscha.github.com/play-authenticate/repo/snapshots/"))(Resolver.ivyStylePatterns)
)
但是我收到以下错误 sbt.ResolveException:未解析的依赖项:com.feth #play-authenticate_2.11; 0.6.1-SNAPSHOT:not found
答案 0 :(得分:2)
根据this sample project,将您的resolvers
更新为以下内容:
resolvers ++= Seq(
Resolver.url("Objectify Play Repository (release)", url("http://schaloner.github.com/releases/"))(Resolver.ivyStylePatterns),
Resolver.url("Objectify Play Repository (snapshot)", url("http://schaloner.github.com/snapshots/"))(Resolver.ivyStylePatterns),
"play-easymail (release)" at "http://joscha.github.io/play-easymail/repo/releases/",
"play-easymail (snapshot)" at "http://joscha.github.io/play-easymail/repo/snapshots/",
"play-authenticate (release)" at "http://joscha.github.io/play-authenticate/repo/releases/",
"play-authenticate (snapshot)" at "http://joscha.github.io/play-authenticate/repo/snapshots/"
)