我使用SBT 0.13.1 。
我在resolvers
中有以下plugins.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] ::::::::::::::::::::::::::::::::::::::::::::::
我做错了什么?
答案 0 :(得分:1)
问题是您已将解析器添加到plugins.sbt
子目录中的project
,但Squeryl不是插件或者是一个插件的依赖关系,应该真正添加到{{1}在项目的主目录中。通常是.sbt
。