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

问题描述

限时删除!!

我正在尝试构建 Scala play 应用程序,但由于 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(2015 年 8 月发布)上的 0.7.3a.或者,升级到 fs2 3.0.x :)

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

1403页,肝出来的..

09-06 22:01