2014-09-25 21 views
1

我正在寫一個Play 2.3.2應用程序(使用Java)。 在我的項目中,我需要使用安全的社交(主)模塊。 但是,當我鍵入激活運行命令我得到以下錯誤:爲什麼SecureSocial和Play 2.3.2的Unresolved Dependencies錯誤?

[info] Resolving ws.securesocial#securesocial_2.11;1.0-SNAPSHOT ... 
[warn] module not found: ws.securesocial#securesocial_2.11;1.0-SNAPSHOT 
[warn] ==== local: tried 
[warn] /home/giacomo/.ivy2/local/ws.securesocial/securesocial_2.11/1.0-SNAPSHOT/ivys/ivy.xml 
[warn] ==== activator-local: tried 
[warn] file:/home/giacomo/stage/bdrim/repository/ws.securesocial/securesocial_2.11/1.0-SNAPSHOT/ivys/ivy.xml 
[warn] ==== public: tried 
[warn] http://repo1.maven.org/maven2/ws/securesocial/securesocial_2.11/1.0-SNAPSHOT/securesocial_2.11-1.0-SNAPSHOT.pom 
[warn] ==== typesafe-releases: tried 
[warn] http://repo.typesafe.com/typesafe/releases/ws/securesocial/securesocial_2.11/1.0-SNAPSHOT/securesocial_2.11-1.0-SNAPSHOT.pom 
[warn] ==== typesafe-ivy-releasez: tried 
[warn] http://repo.typesafe.com/typesafe/ivy-releases/ws.securesocial/securesocial_2.11/1.0-SNAPSHOT/ivys/ivy.xml 
[warn] ==== Typesafe Releases Repository: tried 
[warn] http://repo.typesafe.com/typesafe/releases/ws/securesocial/securesocial_2.11/1.0-SNAPSHOT/securesocial_2.11-1.0-SNAPSHOT.pom 
[warn] ==== sonatype-snapshots: tried 
[warn] https://oss.sonatype.org/content/repositories/snapshots/ws/securesocial/securesocial_2.11/1.0-SNAPSHOT/securesocial_2.11-1.0-SNAPSHOT.pom 
[warn] ==== SecureSocial Repository: tried 
[warn] http://securesocial.ws/repository/snapshots/ws.securesocial/securesocial_2.11/1.0-SNAPSHOT/ivys/ivy.xml 
[info] Resolving jline#jline;2.11 ... 
[warn] :::::::::::::::::::::::::::::::::::::::::::::: 
[warn] ::   UNRESOLVED DEPENDENCIES   :: 
[warn] :::::::::::::::::::::::::::::::::::::::::::::: 
[warn] :: ws.securesocial#securesocial_2.11;1.0-SNAPSHOT: not found 
[warn] :::::::::::::::::::::::::::::::::::::::::::::: 
[trace] Stack trace suppressed: run last *:update for the full output. 
[error] (*:update) sbt.ResolveException: unresolved dependency: ws.securesocial#securesocial_2.11;1.0-SNAPSHOT: not found 
[error] Total time: 9 s, completed Sep 25, 2014 4:01:16 PM 

這是我build.sbt文件:

name := "BigDataAnalysis" 

version := "1.0-SNAPSHOT" 

lazy val root = (project in file(".")).enablePlugins(PlayJava) 

scalaVersion := "2.11.1" 

resolvers ++= Seq(
    Resolver.sonatypeRepo("snapshots"), 
    Resolver.url("SecureSocial Repository", url("http://securesocial.ws/repository/snapshots/"))(Resolver.ivyStylePatterns) 
) 

libraryDependencies ++= Seq(
    javaJdbc, 
    javaEbean, 
    cache, 
    javaWs, 
    javaCore, 
    "ws.securesocial" %% "securesocial" % version.value, 
    "commons-collections" % "commons-collections" % "3.2.1", 
    "commons-io" % "commons-io" % "2.4", 
    "org.mongodb" % "mongo-java-driver" % "2.12.1", 
    "org.jongo" % "jongo" % "1.0", 
    "org.mindrot" % "jbcrypt" % "0.3m" 
) 

javaOptions in Test += "-Dconfig.file=conf/test.conf" 

有什麼不對?沒人能幫助我?

回答

3

我以前從未使用過SecureSocial,因此我無法承諾給出明確的答案,但似乎存在兩個問題。

首先,它看起來好像您用於Maven存儲庫的第二個URL不正確(http://securesocial.ws/repository/snapshots/結果爲404)。但這不是致命的錯誤,因爲根據the docs,SecureSocial位於Maven Central。

第二個更大的問題是,您似乎在請求一個SecureSocial版本以匹配您自己的項目版本("ws.securesocial" %% "securesocial" % version.value)。您可能不想這樣做,除非您想將項目的版本控制爲SecureSocial。

它可能會解決您的問題以使用SecureSocial的文檔中提到的庫相關字符串之一:

,如果你想要最新的版本"ws.securesocial" %% "securesocial" % "2.1.4",或"ws.securesocial" %% "securesocial" % "master-SNAPSHOT"如果你想要最新的快照。

相關問題