【问题标题】:SBT cannot find a package on JCenterSBT 在 JCenter 上找不到包
【发布时间】:2019-03-28 12:52:34
【问题描述】:

我正在尝试使用 JCenter 存储库中的 akka-persistence-inmemory 包,但出现错误。

build.sbt:

scalaVersion := "2.12.7"
val akka_version = "2.5.17"

resolvers ++= Seq(
    Resolver.jcenterRepo
)

libraryDependencies ++= Seq(
    "com.github.dnvriend" % "akka-persistence-inmemory_2.11" % "2.5.15.1" % Test
    // some other deps here
)

错误:

[warn] ==== jitpack: tried
[warn]   https://jitpack.io/com/github/dnvriend/akka-persistence-inmemory_2.11/2.5.15.1/akka-persistence-inmemory_2.11-2.5.15.1.pom
[warn] ==== jcenter: tried
[warn]   https://jcenter.bintray.com/com/github/dnvriend/akka-persistence-inmemory_2.11/2.5.15.1/akka-persistence-inmemory_2.11-2.5.15.1.pom
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.github.dnvriend#akka-persistence-inmemory_2.11;2.5.15.1: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn]  Note: Unresolved dependencies path:
[warn]      com.github.dnvriend:akka-persistence-inmemory_2.11:2.5.15.1 (..\foo\build.sbt#L19-51)
[warn]        +- default:foo_2.12:0.1
[error] sbt.librarymanagement.ResolveException: unresolved dependency: com.github.dnvriend#akka-persistence-inmemory_2.11;2.5.15.1: not found

【问题讨论】:

    标签: scala sbt akka jcenter akka-persistence


    【解决方案1】:

    您可以在 dnvriend bintray repo 上找到发布的库

    https://bintray.com/dnvriend/maven/akka-persistence-inmemory/

    resolvers += "dnvriend" at "http://dl.bintray.com/dnvriend/maven"
    

    jcenter 存储库未使用最新版本的库进行更新。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-10-27
      • 1970-01-01
      • 2014-07-21
      • 2015-02-12
      • 2021-09-19
      • 2016-11-21
      • 2015-01-02
      • 2018-04-24
      相关资源
      最近更新 更多