为什么 sbt 找不到我的依赖项?

Why is sbt not finding my dependency?

在我的电梯项目的 build.sbt 中,我依赖于 paypal 库

"net.liftmodules" % "paypal_2.6" % "1.3-SNAPSHOT",

在构建时(例如 sbt compile),找不到模块。令我困惑的是,如果我检查 sonatype 回购协议,预期的依赖性就在那里

http://oss.sonatype.org/content/repositories/releases/net/liftmodules/paypal_2.6_2.11/1.3-SNAPSHOT/paypal_2.6_2.11-1.3-SNAPSHOT.pom

我的问题是为什么 sbt 找不到明显存在的依赖项>

  [info] Resolving net.liftmodules#paypal_2.6_2.11;1.3-SNAPSHOT ...
[warn]  module not found: net.liftmodules#paypal_2.6_2.11;1.3-SNAPSHOT
[warn] ==== local: tried
[warn]   C:\Users\Andrew Bucknell\.ivy2\local\net.liftmodules\paypal_2.6_2.11.3-SNAPSHOT\ivys\ivy.xml
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/net/liftmodules/paypal_2.6_2.11/1.3-SNAPSHOT/paypal_2.6_2.11-1.3-SNAPSHOT.pom
[warn] ==== snapshots: tried
[warn]   http://oss.sonatype.org/content/repositories/snapshots/net/liftmodules/paypal_2.6_2.11/1.3-SNAPSHOT/paypal_2.6_
2.11-1.3-SNAPSHOT.pom
[warn] ==== releases: tried
[warn]   http://oss.sonatype.org/content/repositories/releases/net/liftmodules/paypal_2.6_2.11/1.3-SNAPSHOT/paypal_2.6_2
.11-1.3-SNAPSHOT.pom
[warn] ==== typesafe-ivy-releases: tried
[warn]   http://repo.typesafe.com/typesafe/ivy-releases/net.liftmodules/paypal_2.6_2.11/1.3-SNAPSHOT/ivys/ivy.xml
[warn] ==== snapshots: tried
[warn]   http://oss.sonatype.org/content/repositories/snapshots/net/liftmodules/paypal_2.6_2.11/1.3-SNAPSHOT/paypal_2.6_
2.11-1.3-SNAPSHOT.pom
[warn] ==== staging: tried
[warn]   http://oss.sonatype.org/content/repositories/staging/net/liftmodules/paypal_2.6_2.11/1.3-SNAPSHOT/paypal_2.6_2.
11-1.3-SNAPSHOT.pom
[warn] ==== releases: tried
[warn]   http://oss.sonatype.org/content/repositories/releases/net/liftmodules/paypal_2.6_2.11/1.3-SNAPSHOT/paypal_2.6_2
.11-1.3-SNAPSHOT.pom

我更新了我的 sonatype 解析器以使用 https

resolvers ++= Seq("snapshots"     at "https://oss.sonatype.org/content/repositories/snapshots",
                "releases"        at "https://oss.sonatype.org/content/repositories/releases"
                )

问题已解决。