2013-06-06 2 views
1

나는 최근에 Play로 새로운 프로젝트를 시작했습니다! 프레임 워크와 스칼라. 저는 ORM에 Squeryl을 사용하는 데 익숙하지만, 이번에는 내 의존성을 해결할 수 없습니다. (다른 사람이 해결할지라도, 단지 squeryl이 아닙니다.)SBT가 Squeryl 의존성을 해결하지 않음

제가 다르게하고있는 유일한 이유는 이전의 다른 컴퓨터 (Windows의 경우 Arch, 이전)에 있고 2.1 대신 Play 2.1.1을 사용하고 있다는 것입니다.

편집 : 나는 또한 프록시 뒤에 있기 때문에 일부 종속성을 해결할 수 있기 때문에 해결되었을 수 있다고 생각했지만 프록시가 sbt를 사용하는 것 외에 다른 이유는 찾을 수 없습니다. 내 브라우저에서 squeryl에 대한 maven repo를 볼 수 있지만 sbt는 찾지 못합니다.

build.properties :

sbt.version=0.12.2 

Build.scala :

val appDependencies = Seq(
// Add your project dependencies here, 
    jdbc, 
    "org.squeryl" %% "squeryl" % "0.9.5-6" 
) 

plugins.sbt :

// Comment to get more information during initialization 
logLevel := Level.Warn 

// The Typesafe repository 
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/" 

// Use the Play sbt plugin for Play projects 
addSbtPlugin("play" % "sbt-plugin" % "2.1.1") 

콘솔 :

C:\Path\To\Play\APP>play run 
[info] Loading project definition from C:\Path\To\Play\APP 
.... 
[warn] module not found: org.squeryl#squeryl_2.10;0.9.5-6 
[warn] ==== local: tried 
[warn] C:\Path\To\Play\play-2.1.1\repository\local\org.squeryl\squeryl_2.10 
[warn] ==== Typesafe Releases Repository: tried 
[warn] http://repo.typesafe.com/typesafe/releases/org/squeryl/squeryl_2.10/0.9.5-6/squeryl_2.10-0.9.5-6.po 
[warn] ==== Typesafe Snapshots Repository: tried 
[warn] http://repo.typesafe.com/typesafe/snapshots/org/squeryl/squeryl_2.10/0.9.5-6/squeryl_2.10-0.9.5-6.p 
[warn] ==== public: tried 
[warn] http://repo1.maven.org/maven2/org/squeryl/squeryl_2.10/0.9.5-6/squeryl_2.10-0.9.5-6.pom 
[warn] :::::::::::::::::::::::::::::::::::::::::::::: 
[warn] ::   UNRESOLVED DEPENDENCIES   :: 
[warn] :::::::::::::::::::::::::::::::::::::::::::::: 
[warn] :: org.squeryl#squeryl_2.10;0.9.5-6: not found 
[warn] :::::::::::::::::::::::::::::::::::::::::::::: 
sbt.ResolveException: unresolved dependency: org.squeryl#squeryl_2.10;0.9.5-6: not found 
    at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:214) 
    at sbt.IvyActions$$anonfun$update$1.apply(IvyActions.scala:122) 
    ... 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
    at java.lang.Thread.run(Unknown Source) 
[error] (*:update) sbt.ResolveException: unresolved dependency: org.squeryl#squeryl_2.10;0.9.5-6: not found 
[warn] some of the dependencies were not recompiled properly, so classloader is not avaialable 
[info] Updating {file:/C:/Path/To/Play/APP} 
[warn] module not found: org.squeryl#squeryl_2.10;0.9.5-6 
[warn] ==== local: tried 
[warn] C:\Path\To\Play\play-2.1.1\repository\local\org.squeryl\squeryl_2.10 
[warn] ==== Typesafe Releases Repository: tried 
[warn] http://repo.typesafe.com/typesafe/releases/org/squeryl/squeryl_2.10/0.9.5-6/squeryl_2.10-0.9.5-6.po 
[warn] ==== Typesafe Snapshots Repository: tried 
[warn] http://repo.typesafe.com/typesafe/snapshots/org/squeryl/squeryl_2.10/0.9.5-6/squeryl_2.10-0.9.5-6.p 
[warn] ==== public: tried 
[warn] http://repo1.maven.org/maven2/org/squeryl/squeryl_2.10/0.9.5-6/squeryl_2.10-0.9.5-6.pom 
[warn] :::::::::::::::::::::::::::::::::::::::::::::: 
[warn] ::   UNRESOLVED DEPENDENCIES   :: 
[warn] :::::::::::::::::::::::::::::::::::::::::::::: 
[warn] :: org.squeryl#squeryl_2.10;0.9.5-6: not found 
[warn] :::::::::::::::::::::::::::::::::::::::::::::: 
sbt.ResolveException: unresolved dependency: org.squeryl#squeryl_2.10;0.9.5-6: not found 
    at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:214) 
    ..... 
    at java.lang.Thread.run(Unknown Source) 
[error] (*:update) sbt.ResolveException: unresolved dependency: org.squeryl#squeryl_2.10;0.9.5-6: not found 
+0

"소나타이저"를 추가하고 어떻게 움직이는 지보십시오. \t "http://oss.sonatype.org/content/repositories/snapshots"의 "Sonatype snapshots", \t "http://oss.sonatype.org/content/repositories/releases"의 "Sonatype releases" – VasyaNovikov

+0

여전히 작동하지 않음 =/ – kingdamian42

답변

0

직장에서 내 프록시에 문제가 발생하여 설정이 잘못되어 문제를 해결해야했습니다. 모두 잘됐다!

0

SBT 프로젝트의 구성 문제가 아닌지 확인하려면 %% 표기법을 사용하지 마십시오. 사실, 이것은 현재의 스칼라 버전에 상응하는 Jar 버전을 자동으로 선택합니다. 이것은 여러분이 기대하는 것과 다를 수 있습니다 (conf에서 감시, 일부 구성 파일의 변수 충돌 등 ...). - 어떤 스칼라 버전

libraryDependencies += "org.squeryl" % "squeryl" % "0.9.5-6" 
0

이 (물론, 관련 부분) 내 build.sbt에서입니다 :

은 "오류"컨텍스트를 분리하기 위해이 선호?

scalaVersion = "2.9.1"

리졸버 + = "형태 보증 저장소" "http://repo.typesafe.com/typesafe/releases"

libraryDependencies ++ = 서열 ( "org.squeryl"%% "squeryl"% "에서 0.9.5-6 "

+0

해결자는 내 것과 동일하지만 자체 자체의 스칼라를 재생 팩으로 사용합니다. 실제로 build.sbt 파일이 없으며 plugins.sbt 파일이 있습니다. 그러나 그것은 scala 2.10을 사용합니다, 그것은 나의 목표 폴더에 있습니다. – kingdamian42

+0

잠깐, 당신은 플러그인으로 squeryl 붙여 넣기를 의미합니까? squeryl은 SBT 플러그인이 아니기 때문에 작동하지 않습니다. – VasyaNovikov

+0

아니요 아니요, 원본에 게시 된 코드는 내 빌드입니다.스칼라 파일. plugins.sbt 파일은 기본적으로 몇 가지 놀이 자료를 추가하여 게시 한 파일처럼 보입니다. – kingdamian42

3

당신이 볼 http://repo1.maven.org/maven2/org/squeryl/ 당신이 얻을 것이다 솔루션입니다.

프로젝트/프로젝트/Build.scala

val appDependencies = Seq(
// Add your project dependencies here, 
    jdbc, 
    anorm, 
    "org.squeryl" % "squeryl_2.10" % "0.9.5-6" 
) 
+0

브라우저에서 탐색하고 볼 수 있지만 어떤 이유로 든 sbt가 표시되지 않습니다 ... '[warn] ==== public : 시도 [warn] http://repo1.maven.org/maven2/org/squeryl/squeryl_2.10/0.9.5-6/squeryl_2.10-0.9.5-6.pom' – kingdamian42

+0

sbt의 '업데이트 종속성 동작'에 '경고 로그 수준'이 있습니다. – bistros

+0

Play 2.6 및 그보다 낮은 버전에도 해당 항목 ' org.squeryl "%%"squeryl "%"0.9.5-7 "' 이 작동합니다. –

관련 문제