如何使用内部Nexus存储库配置SBT?
我无法通过当前网络访问repo1.maven.org等外部主机。不过我有一个内部Nexus存储库。如何设置SBT以使用该存储库 我得到的错误示例:如何使用内部Nexus存储库配置SBT?,sbt,Sbt,我无法通过当前网络访问repo1.maven.org等外部主机。不过我有一个内部Nexus存储库。如何设置SBT以使用该存储库 我得到的错误示例: C:\Users\myusername>sbt sbt-version Getting net.java.dev.jna jna 3.2.3 ... You probably access the destination server through a proxy server that is not well configured. You
C:\Users\myusername>sbt sbt-version
Getting net.java.dev.jna jna 3.2.3 ...
You probably access the destination server through a proxy server that is not well configured.
You probably access the destination server through a proxy server that is not well configured.
You probably access the destination server through a proxy server that is not well configured.
: problems summary ::
::: WARNINGS
Host repo.typesafe.com not found. 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
\\NLON11P20106A\wbulaty1$\.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
::::::::::::::::::::::::::::::::::::::::::::::
我自己也没有尝试过,但据推测,当前sbt 0.12中的功能就是针对这种情况创建的: 通过在
~/.sbt/repositories
中放置一个独立的[repositories]
部分(参见页面),并将-Dsbt.override.build.repos=true
传递给sbt,定义要使用的存储库。只有该文件中的存储库才会被启动器用于检索sbt和Scala,而sbt用于检索项目依赖项
可能重复的