Czy coś jest nie tak z tym repozytorium, http://teleal.org/m2, które powraca? To jest mój plik build.sbt:SBT nie może znaleźć w repozytorium, mimo że plik wyraźnie istnieje.
organization := "org.messy"
name := "mess"
version := "1-SNAPSHOT"
scalaVersion := "2.9.1"
libraryDependencies ++= Seq(
"org.teleal.cling" % "cling-core" % "1.0.5",
"org.teleal.cling" % "cling-support" % "1.0.5"
)
resolvers ++= Seq(
"cling" at "http://teleal.org/m2"
)
... i to jest błąd, który dostaję. Tutejsze teleal.org-adresy URL mogą być otwierane bezpośrednio w przeglądarce z teraz problemów:
> compile
[info] Updating {file:*************************************************}default-d33f58...
[warn] module not found: org.teleal.cling#cling-core;1.0.5
[warn] ==== local: tried
[warn] ********************/.ivy2/local/org.teleal.cling/cling-core/1.0.5/ivys/ivy.xml
[warn] -- artifact org.teleal.cling#cling-core;1.0.5!cling-core.jar:
[warn] ********************/.ivy2/local/org.teleal.cling/cling-core/1.0.5/jars/cling-core.jar
[warn] ==== cling: tried
[warn] http://teleal.org/m2/org/teleal/cling/cling-core/1.0.5/cling-core-1.0.5.pom
[warn] -- artifact org.teleal.cling#cling-core;1.0.5!cling-core.jar:
[warn] http://teleal.org/m2/org/teleal/cling/cling-core/1.0.5/cling-core-1.0.5.jar
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/org/teleal/cling/cling-core/1.0.5/cling-core-1.0.5.pom
[warn] -- artifact org.teleal.cling#cling-core;1.0.5!cling-core.jar:
[warn] http://repo1.maven.org/maven2/org/teleal/cling/cling-core/1.0.5/cling-core-1.0.5.jar
[warn] ==== Scala-Tools Maven2 Repository: tried
[warn] http://scala-tools.org/repo-releases/org/teleal/cling/cling-core/1.0.5/cling-core-1.0.5.pom
[warn] -- artifact org.teleal.cling#cling-core;1.0.5!cling-core.jar:
[warn] http://scala-tools.org/repo-releases/org/teleal/cling/cling-core/1.0.5/cling-core-1.0.5.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.teleal.cling#cling-core;1.0.5: not found
[warn] :::::::::::::::::::::::::::::::::::::::::::::: [error] {file:*************************************************}default-d33f58/*:update: sbt.ResolveException: unresolved dependency: org.teleal.cling#cling-core;1.0.5: not found
[error] Total time: 4 s, completed Feb 19, 2012 1:44:38 PM
Aktualizacja
Prawie zapomniał; Używam SBT-0.11.0 na Mac OS X.
Podsumowanie
Repozytorium teleal.org odpowiedzi na wniosek głowy z SBT wracając statusem odpowiedzi 204. statusu odpowiedzi powinny były tak samo jak żądanie pobrania 200. Więc sbt stwierdza, że nie ma tu nic do zobaczenia.
Jeśli portal teleal.org zdecydowałby się nie obsługiwać żądania głównego, np. Maven central, to działałoby dobrze; myśli :-)
Nota boczna; sbt używa tego interesującego nagłówka accept: 'Accept: text/html, image/gif, image/jpeg, *; q = .2, /; q = 0,2'
nie oznacza to, że rozwiązuje problem, ale najnowsza wersja sbt to 0.11.2 – OlegYch