gpt4 book ai didi

scala - Unresolved 依赖项 : org. scala-tools.sbinary#sbinary_2.9.0;0.4.0:未找到

转载 作者:行者123 更新时间:2023-12-04 20:48:42 24 4
gpt4 key购买 nike

我正在尝试一个名为 junto 的工具包做标签传播。

当我编译它时,它会下载 Scala。

然而,在这个过程中出现了一个 Unresolved 依赖关系。

详细信息在这里:

:: problems summary ::

:::: WARNINGS
module not found: org.scala-tools.sbinary#sbinary_2.9.0;0.4.0

==== local: tried

/root/.ivy2/local/org.scala-tools.sbinary/sbinary_2.9.0/0.4.0/ivys/ivy.xml

==== typesafe-ivy-releases: tried

repo.typesafe.com/typesafe/ivy-releases/org.scala-tools.sbinary/sbinary_2.9.0/0.4.0/ivys/ivy.xml

==== Maven Central: tried

repo1.maven.org/maven2/org/scala-tools/sbinary/sbinary_2.9.0/0.4.0/sbinary_2.9.0-0.4.0.pom

==== sonatype-snapshots: tried

oss.sonatype.org/content/repositories/snapshots/org/scala-tools/sbinary/sbinary_2.9.0/0.4.0/sbinary_2.9.0-0.4.0.pom

::::::::::::::::::::::::::::::::::::::::::::::

:: UNRESOLVED DEPENDENCIES ::

::::::::::::::::::::::::::::::::::::::::::::::

:: org.scala-tools.sbinary#sbinary_2.9.0;0.4.0: not found

::::::::::::::::::::::::::::::::::::::::::::::


:::: ERRORS
Server access Error: Connection timed out url=https://oss.sonatype.org/content/repositories/snapshots/org/sonatype/oss/oss-parent/7/oss-parent-7.jar

SERVER ERROR: Service Unavailable url=http://repo1.maven.org/maven2/org/scala-tools/sbinary/sbinary_2.9.0/0.4.0/sbinary_2.9.0-0.4.0.pom

Server access Error: Connection timed out url=https://oss.sonatype.org/content/repositories/snapshots/org/scala-tools/sbinary/sbinary_2.9.0/0.4.0/sbinary_2.9.0-0.4.0.pom

Server access Error: Connection timed out url=https://oss.sonatype.org/content/repositories/snapshots/org/apache/apache/7/apache-7.jar

Server access Error: Connection timed out url=https://oss.sonatype.org/content/repositories/snapshots/org/sonatype/oss/oss-parent/6/oss-parent-6.jar


:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.scala-tools.sbinary#sbinary_2.9.0;0.4.0: not found
Error during sbt execution: Error retrieving required libraries
(see /root/.sbt/boot/update.log for complete log)
Error: Could not retrieve sbt 0.12.0

最佳答案

将 jar 作为非托管依赖项下载:
http://mvnrepository.com/artifact/org.scala-tools.sbinary/sbinary_2.9.0/0.4.0
并将其放在 lib_unmanaged 下项目目录下的文件夹。

或者添加一个包含它的存储库:http://repo1.maven.org/maven2/
http://repo1.maven.org/maven2/org/scala-tools/sbinary/sbinary_2.9.0/0.4.0/

添加到 pom.xml之间:

<repositories>
...
</repositories>

下列:
    <repository>
<id>central</id>
<name>Maven Central</name>
<url>http://repo1.maven.org/maven2</url>
</repository>

或者:
    <repository>
<id>mvnrepository</id>
<name>mvnrepository</name>
<url>http://mvnrepository.com/artifact</url>
</repository>

如果你使用 sbt,你应该添加 build.sbt下列:
resolvers += "mvnrepository" at "http://mvnrepository.com/artifact/"

或者:
resolvers += "central" at "http://repo1.maven.org/maven2/"

关于scala - Unresolved 依赖项 : org. scala-tools.sbinary#sbinary_2.9.0;0.4.0:未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13116075/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com