【问题标题】:sbt librarymanagement ResolveException Error downloading com.atlassian.jwt:jwt-coresbt librarymanagement ResolveException 下载 com.atlassian.jwt:jwt-core 时出错
【发布时间】:2020-03-15 10:14:11
【问题描述】:

切换到新的开发系统后出现依赖错误(使用剪影播放应用程序)。

sbt.version=1.3.3

在 build.sbt 中:

resolvers += Resolver.jcenterRepo
resolvers += "Sonatype snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
[error] Error downloading com.atlassian.jwt:jwt-api:2.0.5
[error]   Not found
[error]   Not found
[error]   not found: /Users/robert/.ivy2/local/com.atlassian.jwt/jwt-api/2.0.5/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/com/atlassian/jwt/jwt-api/2.0.5/jwt-api-2.0.5.pom

【问题讨论】:

    标签: sbt jwt silhouette


    【解决方案1】:

    工件 com.atlassian.jwt:jwt-api:2.0.5 似乎只能从 Atlassian 的存储库中获得(请参阅 https://mvnrepository.com/artifact/com.atlassian.jwt/jwt-api/2.0.5)。

    添加以下解析器:

    resolvers += "Atlassian's Maven Public Repository" at "https://packages.atlassian.com/maven-public/"
    

    【讨论】:

    • 我试过:解析器 += "Atlassian's Maven Public Repository" at "packages.atlassian.com/maven-public" 和解析器 += Resolver.url("Atlassian Maven", new URL("packages.atlassian.com/maven-public/… 没有成功...唯一可行的是将文件复制到:~/.ivy2/local/com.atlassian.jwt/jwt-core/2.0.5/*
    • sbt 尝试解析 local、public、local-preloaded-ivy 和 local-preloaded。公共网址始终为repo1.maven.org/maven2/com/atlassian/jwt/jwt-core/2.0.1/…。而且这个地址没有这样的文件。添加一个额外的解析器不会改变任何东西。尝试使用 sbt 版本:0.13.18、1.3.2 和 1.3.3,似乎地址 repro1.maven.org 是硬编码的。
    • @RobertJo 它对我有用。您的构建中可能有一些设置会无意中更改解析器。显示inspect resolvers的输出。
    • [info] Setting: scala.collection.Seq[sbt.librarymanagement.Resolver] = Vector() [info] Description: [info] The user-defined additional resolvers for automatically managed dependencies. [info] Provided by: [info] Global / resolvers [info] Defined at: [info] (sbt.Classpaths.baseGlobalDefaults) Defaults.scala:2181 [info] Reverse dependencies: [info] externalResolvers [info] Delegates: [info] resolvers [info] ThisBuild / resolvers [info] Global / resolvers [info] Related: [info] Global / resolvers [info] tousrv / resolvers
    • 看,你实际上没有定义额外的解析器——Vector 是空的。也许您只为多项目构建的单个项目定义了解析器?您需要向我们展示您的项目 - 或重现问题的最小项目。
    猜你喜欢
    • 2016-06-19
    • 2021-11-09
    • 1970-01-01
    • 2014-11-06
    • 2012-12-24
    • 2019-02-12
    • 1970-01-01
    • 2018-08-04
    • 1970-01-01
    相关资源
    最近更新 更多