2014-03-01 32 views
0

我使用SBT 0.13.1SBT不使用解析器?

,我有以下resolversplugins.sbt

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

resolvers += "Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/" 

及以下的lib依賴性:

"org.squeryl" % "squeryl2_10" % "0.9.6-SNAPSHOT" 

SBT似乎並沒有使用快照解析器,因爲我可以看到神器存在在http://oss.sonatype.org/content/repositories/snapshots/org/squeryl/squeryl_2.10/0.9.6-SNAPSHOT/

[warn] module not found: org.squeryl#squeryl2_10;0.9.6-SNAPSHOT 
[warn] ==== local: tried 
[warn] /home/max/.ivy2/local/org.squeryl/squeryl2_10/0.9.6-SNAPSHOT/ivys/ivy.xml 
[warn] ==== public: tried 
[warn] http://repo1.maven.org/maven2/org/squeryl/squeryl2_10/0.9.6-SNAPSHOT/squeryl2_10-0.9.6-SNAPSHOT.pom 
[warn] ==== Typesafe Releases Repository: tried 
[warn] http://repo.typesafe.com/typesafe/releases/org/squeryl/squeryl2_10/0.9.6-SNAPSHOT/squeryl2_10-0.9.6-SNAPSHOT.pom 
[info] Resolving org.fusesource.jansi#jansi;1.4 ... 
[warn] :::::::::::::::::::::::::::::::::::::::::::::: 
[warn] ::   UNRESOLVED DEPENDENCIES   :: 
[warn] :::::::::::::::::::::::::::::::::::::::::::::: 
[warn] :: org.squeryl#squeryl2_10;0.9.6-SNAPSHOT: not found 
[warn] :::::::::::::::::::::::::::::::::::::::::::::: 

我在做什麼錯?

回答

1

的問題是,你在project子目錄添加到解析器plugins.sbt,但Squeryl不是一個插件或一個的依賴,應該被加入到一個.sbt文件在項目的主目錄。通常是build.sbt