對不起,我的英語壞了。Deadbolt 2.5 - 導入SBT項目時出錯
今天我想在我的項目中實現Deadbolt。 我閱讀了webstite中的文檔,但在開始時我遇到了問題。
第一條指令說它需要在我的built.sbt文件中添加這些行。
libraryDependencies ++= Seq(
"be.objectify" %% "deadbolt-scala" % "2.5.1-SNAPSHOT"
)
resolvers += Resolver.sonatypeRepo("snapshots")
我用IntellijIDEA,當我刷新項目我有這樣的錯誤。
SBT 'Simulateur' project refresh failed Error:Error:Error while importing SBT project:
[info] Resolving com.typesafe.play#play-doc_2.11;1.2.2 ...
[info] Resolving org.pegdown#pegdown;1.4.0 ...
[info] Resolving org.parboiled#parboiled-java;1.1.5 ...
[info] Resolving org.parboiled#parboiled-core;1.1.5 ...
[info] Resolving org.ow2.asm#asm;4.1 ...
[info] Resolving org.ow2.asm#asm-tree;4.1 ...
[info] Resolving org.ow2.asm#asm-analysis;4.1 ...
[info] Resolving org.ow2.asm#asm-util;4.1 ...
[info] Resolving jline#jline;2.12.1 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: be.objectify#deadbolt-scala_2.11;2.5.1-SNAPSHOT: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[trace] Stack trace suppressed: run 'last *:update' for the full output.
[trace] Stack trace suppressed: run 'last :ssExtractDependencies' for the full output.
[error] (:update) sbt.ResolveException: unresolved dependency:be.objectify#deadbolt-scala_2.11;2.5.1-SNAPSHOT: not found
[error] (*:ssExtractDependencies) sbt.ResolveException: unresolved dependency: be.objectify#deadbolt-scala_2.11;2.5.1-SNAPSHOT: not found
[error] Total time: 18 s, completed 20 déc. 2016 22:00:15
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384M; support was removed in 8.0
See complete log in C:\Users\PCDamien.IntelliJIdea2016.2\system\log\sbt.last.log
現在我就告訴我的built.sbt文件
name := "Simulateur"
version := "1.0"
lazy val `simulateur` = (project in file(".")).enablePlugins(PlayScala)
scalaVersion := "2.11.7"
libraryDependencies ++= Seq(jdbc , cache , ws , specs2 % Test, "be.objectify" %% "deadbolt-scala" % "2.5.1-SNAPSHOT")
unmanagedResourceDirectories in Test <+= baseDirectory (_ /"target/web/public/test")
resolvers += "scalaz-bintray" at "https://dl.bintray.com/scalaz/releases"
resolvers += Resolver.sonatypeRepo("snapshots")
routesGenerator := StaticRoutesGenerator
預先感謝您的幫助! :)
你確定要拉入'SNAPSHOT'嗎? –
我是一無所有,但它在網站上的「開始使用」指示中已註明。你有其他想法嗎? –