如何更改尚未设置的 Scala 应用程序中的依赖项版本? [英] How do I change the version of a dependency in a Scala application that I haven't set?

查看:20
本文介绍了如何更改尚未设置的 Scala 应用程序中的依赖项版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试构建一个 Scala 播放应用程序,但由于 repo 不再启动,依赖项突然无法下载

I am trying to build a Scala play application and a dependency is suddenly failing to download due to the repo no longer being up

下面的完整堆栈跟踪.我曾经获得 scalaz-stream v0.7a 依赖关系很好,但它似乎不再出现在网站上.有一个快照 0.7a 可供我使用.但是我只需要知道如何将版本切换到这个版本?

Full stack trace below. I used to get the scalaz-stream v0.7a dependency just fine but it seems to no longer be up on the website. There is a snapshot-0.7a which I would to use.. however I just need to know how to switch the version over to this one?

我不知道 scalaz 依赖项的来源或定义的位置.我自己没有设置它,如果我搜索目录中的所有文件,则没有提及 scalaz

I have no idea where the scalaz dependency is coming from or where it's defined.. I haven't set it myself and if I search all files within the directory there's no mention of scalaz

一定有什么地方我可以将它从 0.7a 更改为 snapshot-0.7a

There must be somewhere I can just change it from 0.7a to snapshot-0.7a

[info] Resolving jline#jline;2.12.1 ...
[warn]  [FAILED     ] org.scalaz.stream#scalaz-stream_2.11;0.7a!scalaz-stream_2.11.jar(bundle):  (0ms)
[warn] ==== local: tried
[warn]   /home/vagrant/.ivy2/local/org.scalaz.stream/scalaz-stream_2.11/0.7a/bundles/scalaz-stream_2.11.jar
[warn] ==== public: tried
[warn]   https://repo1.maven.org/maven2/org/scalaz/stream/scalaz-stream_2.11/0.7a/scalaz-stream_2.11-0.7a.jar
[warn] ==== maven-central: tried
[warn]   https://repo1.maven.org/maven2/org/scalaz/stream/scalaz-stream_2.11/0.7a/scalaz-stream_2.11-0.7a.jar
[warn] ==== LocalIvy: tried
[warn]   /home/vagrant/.ivy2/local/org.scalaz.stream/scalaz-stream_2.11/0.7a/bundles/scalaz-stream_2.11.jar
[warn] ==== scalaz-mulesoft: tried
[warn]  https://repository.mulesoft.org/nexus/content/repositories/public/org/scalaz/stream/scalaz-stream_2.11/0.7a/scalaz-stream_2.11-0.7a.jar
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::              FAILED DOWNLOADS            ::
[warn]  :: ^ see resolution messages for details  ^ ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.scalaz.stream#scalaz-stream_2.11;0.7a!scalaz-stream_2.11.jar(bundle)
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[info] Resolving jline#jline;2.12.1 ...
[info] Done updating.
[info] Resolving jline#jline;2.12.1 ...
[info] Done updating.
[info] Wrote /vagrant/dummy-services/target/scala-2.11/dummy-services_2.11-1.1.1.pom
sbt.ResolveException: download failed: org.scalaz.stream#scalaz-stream_2.11;0.7a!scalaz-stream_2.11.jar(bundle)
        at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:313)
        ...
        at java.lang.Thread.run(Thread.java:748)
[error] (akka-quartz/*:update) sbt.ResolveException: download failed: org.scalaz.stream#scalaz-stream_2.11;0.7a!scalaz-stream_2.11.jar(bundle)
[error] Total time: 7 s, completed Jun 3, 2021 1:38:01 PM

推荐答案

查看 @mpilquist 推文

https://twitter.com/mpilquist/status/1389586284243476484

scalaz-stream 的早期版本已在 bintray 上发布,自 5 月 1 日起不再提供服务.尝试升级到 Maven Central 上的 0.7.3a(2015 年 8 月发布).或者,升级到 fs2 3.0.x :)

The early versions of scalaz-stream were published on bintray, which is no longer in service as of May 1st. Try upgrading to 0.7.3a which is on Maven Central (published August 2015). Alternatively, upgrade to fs2 3.0.x :)

这篇关于如何更改尚未设置的 Scala 应用程序中的依赖项版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆