未解决的依赖项(与bintray日落有关?)



我今天开始在多个jar中收到一个unresolved dependency错误。我不知道这是与垃圾箱日落有关还是与我这边的一些愚蠢的事情有关。

我又让它工作了,但我担心这只是因为一些缓存的文件。如果这一切现在都被打破了,我需要一个长期的解决方案。

依赖性

https://github.com/teralytics/geohex

您可以看到要包含在build.sbt中的指示行。。。

resolvers += Resolver.bintrayRepo("teralytics", "maven")
libraryDependencies += "net.teralytics" %% "geohex" % "0.1.+"

我的设置

我有多个胖罐子,我推到Spark集群。。。它们有一个我编写的共同依赖项,并且我使用sbt publishLocal使其可用。公共依赖项和我推送给Spark的最后一个jar都大量使用了geohex

我一直在build.sbt中为底层依赖项和最终jar包含net.teralytics.geohex引用。我这样做是为了多个通用的引用,这从来都不是问题。

从今天开始(自6月初以来首次编译(。。。底层jar编译得很好,但下游jar都未能编译,引发了以下。。。

[warn]  module not found: net.teralytics#geohex_2.11;0.1.+
[warn] ==== local: tried
[warn]   /Users/User123/.ivy2/local/net.teralytics/geohex_2.11/[revision]/ivys/ivy.xml
[warn] ==== local-preloaded-ivy: tried
[warn]   /Users/User123/.sbt/preloaded/net.teralytics/geohex_2.11/[revision]/ivys/ivy.xml
[warn] ==== local-preloaded: tried
[warn]   file:////Users/User123/.sbt/preloaded/net/teralytics/geohex_2.11/[revision]/geohex_2.11-[revision].pom
[warn] ==== public: tried
[warn]   https://repo1.maven.org/maven2/net/teralytics/geohex_2.11/[revision]/geohex_2.11-[revision].pom
[warn] ==== bintray-teralytics-maven: tried
[warn]   https://dl.bintray.com/teralytics/maven/net/teralytics/geohex_2.11/[revision]/geohex_2.11-[revision].pom
[info] Resolving jline#jline;2.12.1 ...
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: net.teralytics#geohex_2.11;0.1.+: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn] 
[warn]  Note: Unresolved dependencies path:
[warn]    net.teralytics:geohex_2.11:0.1.+ (/Users/User123/jars/name123/build.sbt#L17-27)
[warn]      +- org.product123:name123.11:4.0.2
sbt.ResolveException: unresolved dependency: net.teralytics#geohex_2.11;0.1.+: not found
...
[error] (*:update) sbt.ResolveException: unresolved dependency: net.teralytics#geohex_2.11;0.1.+: not found

由于我在上游jar中有geohex,并且它编译得很好,所以我所做的只是从下游jar的build.sbt中删除对它的引用,它们现在就编译了。

但为什么

看起来垃圾箱好像被太阳淋湿了。我读到这个。。。

https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/

但除了从github或mvnrepository复制CCD_ 9的行之外。。。我真的不明白bintray是做什么的,也不明白我是否因为这些变化而有失去访问geohex的危险。

因为我的笔记本电脑上有一些缓存的文件,所以现在这样做有效吗?

最好的做法是什么?分叉回购和publishLocal以保持可用性?

URL首先点击maven central,然后点击Bintray。由于Bintray现在已经日落,现在还不确定"teralytics"工件到底托管在哪里,你需要联系项目的维护者Github帐户https://github.com/teralytics.

最新更新