gpt4 book ai didi

git - 在 "Error: could not retrieve JNA"上构建 akka 失败

转载 作者:太空狗 更新时间:2023-10-29 14:01:48 27 4
gpt4 key购买 nike

我尝试按照网站 (http://akka.io/docs/akka/1.2/dev/building-akka.html) 上的描述构建 akka,但未成功。

我正在运行带有 cygwin、sbt 0.11.0 和 scala 2.9.1 的 Windows 7。以下是我遵循的步骤顺序:

git clone git://github.com/jboner/akka.git
git clone git://github.com/jboner/akka-modules.git
cd akka
sbt.bat update

最后一条命令失败并出现以下错误:

$ sbt.bat update

C:\Users\***\Desktop\akka>set SCRIPT_DIR=C:\SBT\

C:\Users\***\Desktop\akka>java -Xmx512M -jar "C:\SBT\sbt-launch.jar" update
Getting net.java.dev.jna jna 3.2.3 ...

:: problems summary ::
:::: WARNINGS
module not found: net.java.dev.jna#jna;3.2.3

==== local: tried

C:\Users\***\.ivy2/local/net.java.dev.jna/jna/3.2.3/ivys/ivy.xml

==== Maven2 Local: tried

file://C:\Users\***/.m2/repository/net/java/dev/jna/jna/3.2.3/jna-3.2.3.pom

==== typesafe-ivy-releases: tried

http://repo.typesafe.com/typesafe/ivy-releases/net.java.dev.jna/jna/3.2.3/ivys/ivy.xml

==== Maven Central: tried

http://repo1.maven.org/maven2/net/java/dev/jna/jna/3.2.3/jna-3.2.3.pom

==== Scala-Tools Maven2 Repository: tried

http://scala-tools.org/repo-releases/net/java/dev/jna/jna/3.2.3/jna-3.2.3.pom

==== Scala-Tools Maven2 Snapshots Repository: tried

http://scala-tools.org/repo-snapshots/net/java/dev/jna/jna/3.2.3/jna-3.2.3.pom

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

:: UNRESOLVED DEPENDENCIES ::

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

:: net.java.dev.jna#jna;3.2.3: not found

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


:::: ERRORS
Server access Error: Connection timed out: connect url=http://repo.typesafe.com/typesafe/ivy-releases/net.java.dev.jna/jna/3.2.3/ivys/ivy.xml

Server access Error: Connection timed out: connect url=http://repo1.maven.org/maven2/net/java/dev/jna/jna/3.2.3/jna-3.2.3.pom

Server access Error: Connection timed out: connect url=http://scala-tools.org/repo-releases/net/java/dev/jna/jna/3.2.3/jna-3.2.3.pom

Server access Error: Connection timed out: connect url=http://scala-tools.org/repo-snapshots/net/java/dev/jna/jna/3.2.3/jna-3.2.3.pom


:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: net.java.dev.jna#jna;3.2.3: not found
Error during sbt execution: Error retrieving required libraries
(see C:\Users\***\.sbt\boot\update.log for complete log)
Error: Could not retrieve JNA

使用 sbt 0.7.7,我得到以下信息(提示输入名称):

./sbt.bat update

C:\Users\***\Desktop\akka>set SCRIPT_DIR=C:\Users\***\Desktop\akka\

C:\Users\***\Desktop\akka>java -Xmx512M -jar "C:\Users\***\Desktop\akka\sbt-launch.jar" update
Name:

我做错了什么吗?你能帮我解决这个问题吗?

提前致谢

最佳答案

请注意,“SBT interactive mode”部分中的 akka 编译说明似乎引用了一个旧的 sbt

% sbt
[info] Building project akka 1.2 against Scala 2.9.1
[info] using AkkaParentProject with sbt 0.7.6 and Scala 2.7.7
^^^^^^^^^
|
--- no xsbt 0.10+ here...

但是 Akka build.properties确实引用了 sbt 0.11.0。

考虑到 http://repo1.maven.org/maven2/net/java/dev/jna/jna/3.2.3/jna-3.2.3.pom是一个有效的地址,我建议检查任何互联网问题(比如没有为 sbt session 设置代理)。

关于git - 在 "Error: could not retrieve JNA"上构建 akka 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8091481/

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