正在获取net.java.dev.jna jna 3.2.3 ...
您可能通过配置不正确的代理服务器访问目标服务器。
您可能通过配置不正确的代理服务器访问目标服务器。
您可能通过配置不正确的代理服务器访问目标服务器。

::问题摘要::
::::警告
找不到主机repo.typesafe.com。 url = http://repo.typesafe.com/typesafe/ivy-releases/net.java.dev.jna/jna/3.2.3/ivys/ivy.xml

Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/net/java/dev/jna/jna/3.2.3/jna-3.2.3.pom

Host oss.sonatype.org not found. url=https://oss.sonatype.org/content/repositories/snapshots/net/java/dev/jna/jna/3.2.3/jna-3.2.3.pom

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

==== local: tried

  /root/.ivy2/local/net.java.dev.jna/jna/3.2.3/ivys/ivy.xml

==== 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

==== sonatype-snapshots: tried

  https://oss.sonatype.org/content/repositories/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

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

::使用详细或调试消息级别获取更多详细信息
Unresolved 依赖项:net.java.dev.jna#jna; 3.2.3:找不到
sbt执行期间发生错误:检索所需的库时出错
(有关完整日志,请参见/root/.sbt/boot/update.log)
错误:无法检索jna 3.2.3

最佳答案

我认为答案可以在日志中找到:

您可能通过配置不正确的代理服务器访问目标服务器。

如果可以使用其他代理服务器,则可以在sbt启动脚本中进行设置:

-Dhttp.proxyHost=<proxy> -Dhttp.proxyPort=<port>

关于sbt - SBT安装: You probably access the destination server through a proxy server that is not well configured,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/24181348/

10-12 06:15