Hi everyone,
I quite often publish new versions of libraries, to maven central, sonatype, etc.. and then go to use it in another app.
For the 1st haf hour, after I have published the artefact, SBT seems to not be able to resolve it. As an example, today I published version 1.0.88 of Clairvoyance. Once the build had finished and it had been published, I tried to use it from another app. using sbt update, I get output like this for the first half-hour or so.
$ sbt update
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
[info] Loading global plugins from /Users/me/.sbt/0.13/plugins
[info] Loading project definition from /Users/me/dev/projects/boost/project
[info] Set current project to boost (in build file:/Users/me/dev/projects/boost/)
[info] Updating {file:/Users/me/dev/projects/boost/}root...
[info] Resolving com.github.rhyskeepence#clairvoyance-scalatest_2.10;1.0.88 ...
[warn] module not found: com.github.rhyskeepence#clairvoyance-scalatest_2.10;1.0.88
[warn] ==== local: tried
[warn] /Users/me/.ivy2/local/com.github.rhyskeepence/clairvoyance-scalatest_2.10/1.0.88/ivys/ivy.xml
[warn] ==== public: tried
[warn]
https://repo1.maven.org/maven2/com/github/rhyskeepence/clairvoyance-scalatest_2.10/1.0.88/clairvoyance-scalatest_2.10-1.0.88.pom [warn] ==== releases: tried
[warn]
http://oss.sonatype.org/content/repositories/releases/com/github/rhyskeepence/clairvoyance-scalatest_2.10/1.0.88/clairvoyance-scalatest_2.10-1.0.88.pom [warn] ==== Typesafe Releases: tried
[warn]
http://repo.typesafe.com/typesafe/maven-releases/com/github/rhyskeepence/clairvoyance-scalatest_2.10/1.0.88/clairvoyance-scalatest_2.10-1.0.88.pom [info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.github.rhyskeepence#clairvoyance-scalatest_2.10;1.0.88: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
Now the weird thing is that, while SBT is telling me this, I can MANUALLY go to
http://oss.sonatype.org/content/repositories/releases/com/github/rhyskeepence/clairvoyance-scalatest_2.10/1.0.88/clairvoyance-scalatest_2.10-1.0.88.pom and download the pom fine.
Eventually, when it does download (usually about half an hour), it downloads from maven:
[info] downloading
https://repo1.maven.org/maven2/com/github/rhyskeepence/clairvoyance-scalatest_2.10/1.0.88/clairvoyance-scalatest_2.10-1.0.88.jar ...
[info] [SUCCESSFUL ] com.github.rhyskeepence#clairvoyance-scalatest_2.10;1.0.88!clairvoyance-scalatest_2.10.jar (915ms)
[info] downloading
https://repo1.maven.org/maven2/com/github/rhyskeepence/clairvoyance-core_2.10/1.0.88/clairvoyance-core_2.10-1.0.88.jar ...
[info] [SUCCESSFUL ] com.github.rhyskeepence#clairvoyance-core_2.10;1.0.88!clairvoyance-core_2.10.jar (919ms)
1. Why can't sbt get the files successfully from sonatype when they actually seem to be there?
2. Why does it take so long?
Cheers,
Raymond