2

我已经为此奋斗了好几天,但仍然没有运气:( 试图添加一些“解析器”等。但我没有任何正确的前进方向。看起来没有 org.scala-sbt#sbt;0.12.3 但我可以使用我的浏览器访问http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.12.3/ivys/ivy.xml (所以工件可用)。

顺便说一句,我在代理服务器后面,但我觉得这并不重要。

这是一个日志:

[info] Loading project definition from C:\proj\blogger-example\project
[info] Updating {file:/C:/proj/blogger-example/project/}default-265363...
[info] Resolving com.github.mpeltonen#sbt-idea;1.4.0 ...
[info] Resolving commons-io#commons-io;2.0.1 ...
[info] Resolving org.scala-sbt#sbt;0.12.3 ...
[warn]  module not found: org.scala-sbt#sbt;0.12.3
[warn] ==== typesafe-ivy-releases: tried
[warn]   http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.12.3/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn]   http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/org.scala-sbt/sbt/0.12.3/ivys/ivy.xml
[warn] ==== local: tried
[warn]   C:\Users\oabakumov\.ivy2\local\org.scala-sbt\sbt\0.12.3\ivys\ivy.xml
[warn] ==== Typesafe Repository: tried
[warn]   http://repo.typesafe.com/typesafe/releases/org/scala-sbt/sbt/0.12.3/sbt-0.12.3.pom
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/org/scala-sbt/sbt/0.12.3/sbt-0.12.3.pom
[info] Resolving org.scala-lang#scala-library;2.9.2 ...
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.scala-sbt#sbt;0.12.3: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
sbt.ResolveException: unresolved dependency: org.scala-sbt#sbt;0.12.3: not found

我的build.sbt文件:

name := "blogger-example"
version := "1.0"

我的project\plugins.sbt文件:

resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.4.0")
4

2 回答 2

0

确保在 shell(或命令提示符)中也正确设置了代理。

例如在 Windows 7 机器上,设置以下环境变量

HTTP_PROXY = myproxy.com:1234

于 2013-05-22T12:03:55.823 回答
0

我今天打开了我的 update.log 文件(.sbt\boot 目录)。详细的日志帮助我朝正确的方向挖掘。我遇到了 HTTP 403 错误(意思是“您无权访问该资源”)。所以 - 问题出在我的环境设置中(SBT 设置 - sbtconfig.txt)。

所以......我的建议 - 当你的构建不清楚时 - 转到日志文件。

于 2013-05-22T15:54:30.547 回答