SBT无法通过代理工作

时间:2017-01-26 13:39:46

标签: scala proxy sbt

根据SBT documentation和SO question,我试图让SBT在代理下工作。但仍然会出错

[warn] Your proxy requires authentication.
[warn] Your proxy requires authentication.
[warn] Your proxy requires authentication.
[warn]  module not found: com.github.nscala-time#nscala-time_2.11;2.16.0
[warn] ==== local: tried
[warn]   /home/user/.ivy2/local/com.github.nscala-time/nscala-time_2.11/2.16.0/ivys/ivy.xml
[warn] ==== public: tried
[warn]   https://repo1.maven.org/maven2/com/github/nscala-time/nscala-time_2.11/2.16.0/nscala-time_2.11-2.16.0.pom
[warn] ==== sonatype-snapshots: tried
[warn]   https://oss.sonatype.org/content/repositories/snapshots/com/github/nscala-time/nscala-time_2.11/2.16.0/nscala-time_2.11-2.16.0.pom
[warn] ==== scalaz-bintray: tried
[warn]   https://dl.bintray.com/scalaz/releases/com/github/nscala-time/nscala-time_2.11/2.16.0/nscala-time_2.11-2.16.0.pom

我试过了:

  1. java -Dhttp.proxyUser = username -Dhttp.proxyPassword = mypassword settings(均为HTTPS)
  2. 导出http(s)_proxy环境变量
  3. 导出JAVA_OPTS
  4. 导出SBT_OPTS
  5. 更新sbtopts文件
  6. 〜/ .ivy2 / cache /目录包含无法获取的库。我的版本是0.13.13。任何人都可以帮助我理解我做错了什么吗?

0 个答案:

没有答案