作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在 Windows 桌面上的企业防火墙后面使用 sbt 0.13.13。
我们有一个 Artifactory,它似乎对其他构建工具工作得很好,但我也想让 SBT 工作,但是我什至无法让 sbt 0.13.x 启动!
当我尝试启动 SBT 时,我从启动器收到此错误:
C:\workspace\aggregator2>c:\apps\sbt-0.13.13\sbt-launcher-packaging-0.13.13\bin\sbt
Getting org.scala-sbt sbt 0.13.13 ...
:: problems summary ::
:::: WARNINGS
module not found: org.scala-sbt#sbt;0.13.13
==== local: tried
C:\Users\USERNAME\.ivy2\local\org.scala-sbt\sbt\0.13.13\ivys\ivy.xml
-- artifact org.scala-sbt#sbt;0.13.13!sbt.jar:
C:\Users\USERNAME\.ivy2\local\org.scala-sbt\sbt\0.13.13\jars\sbt.jar
==== my-ivy-proxy-releases: tried
http://artifactory.bigcompany.com:8081/artifactory/virtual-sbt/org.scala-sbt/sbt/0.13.13/ivys/ivy.xml
==== my-maven-proxy-releases: tried
http://artifactory.bigcompany.com:8081/artifactory/virtual-sbt/org/scala-sbt/sbt/0.13.13/sbt-0.13.13.pom
-- artifact org.scala-sbt#sbt;0.13.13!sbt.jar:
http://artifactory.bigcompany.com:8081/artifactory/virtual-sbt/org/scala-sbt/sbt/0.13.13/sbt-0.13.13.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.scala-sbt#sbt;0.13.13: not found
::::::::::::::::::::::::::::::::::::::::::::::
try to get credentials for: Artifactory Realm@artifactory.bigcompany.com
authentication: k='Artifactory Realm@artifactory.bigcompany.com' c='null'
HTTP response status: 401 url=http://artifactory.bigcompany.com:8081/artifactory/virtual-sbt/org.scala-sbt/sbt/0.13.13/ivys/ivy.xml
CLIENT ERROR: Unauthorized url=http://artifactory.bigcompany.com:8081/artifactory/virtual-sbt/org.scala-sbt/sbt/0.13.13/ivys/ivy.xml
my-ivy-proxy-releases: resource not reachable for org.scala-sbt#sbt;0.13.13: res=http://artifactory.bigcompany.com:8081/artifactory/virtual-sbt/org.scala-sbt/sbt/0.13.13/ivys/ivy.xml
my-ivy-proxy-releases: no ivy file found for org.scala-sbt#sbt;0.13.13
realm=Artifactory Realm
host=artifactory.bigcompany.com
user=USERNAME
password=<my api key>
credentials += Credentials(Path.userHome / ".sbt" / ".credentials")
c:\apps\sbt-0.13.13\sbt-launcher-packaging-0.13.13\bin\sbt
最佳答案
我想我遇到了同样的问题。
由于您已经在 %USERPROFILE%/.sbt/.credentials
下创建了正确的凭证文件,您可能需要设置系统或用户环境变量:set SBT_CREDENTIALS=%USERPROFILE%/.sbt/.credentials
关于scala - 如何从 Windows 工作站向我的私有(private) Artifactory 服务器提供 SBT 凭据?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41299355/
我是一名优秀的程序员,十分优秀!