org.scala-sbt#sbt;0.12.3: not found

不羁岁月 提交于 2019-12-24 03:59:08

问题


Please help.

I have fought with that for several days but still no luck :( Tried to add some "resolvers" etc. But I have no any right direction to move along. Looks like no org.scala-sbt#sbt;0.12.3 but i can access http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.12.3/ivys/ivy.xml using my browser (so artifact is available).

I'm behind the proxy server btw, but I have a feeling that doesn't matter ...

Here is a log:


    [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

My build.sbt

    name := "blogger-example"

    version := "1.0"

My project\plugins.sbt file:

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

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

回答1:


Make sure the proxy is set also correctly in the shell (or command prompt).

E.g on a windows 7 machine, set the following environment variable

HTTP_PROXY = myproxy.com:1234




回答2:


I opened my update.log file (.sbt\boot directory) today. And detailed log helped me to dig in correct direction. I had HTTP 403 error (meant "you has no access to that resource"). So - the question was in my environment settings (SBT settings - sbtconfig.txt).

So... My advice - when nothing clear with your build - go to the log file.



来源:https://stackoverflow.com/questions/16675444/org-scala-sbtsbt0-12-3-not-found

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!