org.scala-sbt#sbt; 0.12.3:未找到

时间:2013-05-21 16:55:13

标签: scala sbt

请帮忙。

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

我是代理服务器btw的背后,但我有一种无所谓的感觉......

这是一个日志:


    [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"

我的项目\ plugins.sbt文件:

    resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"

    addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.4.0")

2 个答案:

答案 0 :(得分:0)

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

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

HTTP_PROXY = myproxy.com:1234

答案 1 :(得分:0)

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

所以...我的建议 - 如果您的构建没有任何明确的内容 - 请转到日志文件。