为什么没有找到我的依赖?

时间:2015-01-31 08:42:40

标签: sbt sonatype

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

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

在构建时(例如sbt compile),找不到模块。令我感到困惑的是,如果我签入了sonatype repo,那么预期的依赖是

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\1.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

1 个答案:

答案 0 :(得分:0)

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

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

问题解决了。