2014-09-25 6 views
1

저는 (Java를 사용하는) Play 2.3.2 응용 프로그램을 작성하고 있습니다. 내 프로젝트에서 이제는 보안 소셜 (마스터) 모듈을 사용해야합니다. 그러나 나는 다음과 같은 오류를 얻을 활성화 실행 명령을 입력 할 때 :SecureSocial 및 Play 2.3.2와 관련하여 해결되지 않은 종속성 오류가 발생하는 이유는 무엇입니까?

[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에 있기 때문에 그렇습니다.

더 큰 문제는 자신의 프로젝트 버전 ("ws.securesocial" %% "securesocial" % version.value)과 일치하도록 SecureSocial 버전을 요청한 것으로 보입니다. 프로젝트의 버전 관리를 SecureSocial에 고정하려는 경우가 아니라면이 작업을 원하지 않을 것입니다. 최신 스냅 샷을 원하는 경우

최신 버전을 원하는 경우 "ws.securesocial" %% "securesocial" % "2.1.4", 또는 "ws.securesocial" %% "securesocial" % "master-SNAPSHOT" :

그것은 SecureSocial의 문서에 언급 된 라이브러리 의존성 문자열 중 하나를 사용하여 문제를 해결할 수 있습니다.