sbt 0.11.3 and casbah-gridfs jar

124 views
Skip to first unread message

Dave

unread,
Jul 19, 2012, 8:33:17 AM7/19/12
to simple-b...@googlegroups.com
Does anyone has a clue why sbt 0.11.3 doesn't want to download the casbah-gridfs jar?
The casbah-gridfs jar is there and manually I can download it.
 
 
build.sbt (removed empty lines for brevity)
================================
name := "mongodbtest"
version := "0.1"
organization := "org.mytest"
scalaVersion := "2.9.2"
scalacOptions ++= Seq("-deprecation", "-unchecked")
resolvers += Classpaths.typesafeResolver
resolvers += Classpaths.typesafeSnapshots
resolvers += ScalaToolsReleases
resolvers += ScalaToolsSnapshots
libraryDependencies ++= Seq (
  "org.mongodb" %% "casbah" % "2.4.1",
  "com.novus" %% "salat-core" % "1.9.0"
)

> update
[info] Updating {file:/C:/Users/Dave/mongodbtest/}default-a4454c...
[info] Resolving org.scala-lang#scala-library;2.9.2 ...
[info] Resolving org.mongodb#casbah_2.9.2;2.4.1 ...
[info] Resolving org.mongodb#casbah-util_2.9.2;2.4.1 ...
[info] Resolving org.slf4j#slf4j-api;1.6.0 ...
[info] Resolving org.scalaj#scalaj-collection_2.9.1;1.2 ...
[info] Resolving org.scala-tools.time#time_2.9.1;0.5 ...
[info] Resolving joda-time#joda-time;1.6.2 ...
[info] Resolving org.specs2#specs2_2.9.2;1.10 ...
[info] Resolving org.specs2#specs2-scalaz-core_2.9.2;6.0.1 ...
[info] Resolving org.mongodb#mongo-java-driver;2.8.0 ...
[info] Resolving org.mongodb#casbah-commons_2.9.2;2.4.1 ...
[info] Resolving org.mongodb#casbah-core_2.9.2;2.4.1 ...
[info] Resolving org.mongodb#casbah-query_2.9.2;2.4.1 ...
[info] Resolving org.mongodb#casbah-gridfs_2.9.2;2.4.1 ...
[info] Resolving com.novus#salat-core_2.9.2;1.9.0 ...
[info] Resolving com.novus#salat-util_2.9.2;1.9.0 ...
[info] Resolving org.slf4j#slf4j-api;1.6.4 ...
[info] Resolving org.scala-lang#scalap;2.9.2 ...
[info] Resolving org.scala-lang#scala-compiler;2.9.2 ...
[info] Resolving net.liftweb#lift-json_2.9.2;2.5-SNAPSHOT ...
[info] Resolving com.thoughtworks.paranamer#paranamer;2.4.1 ...
[warn]  [NOT FOUND  ] org.mongodb#casbah-gridfs_2.9.2;2.4.1!casbah-gridfs_2.9.2.
jar (156ms)
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/org/mongodb/casbah-gridfs_2.9.2/2.4.1/cas
bah-gridfs_2.9.2-2.4.1.jar
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::              FAILED DOWNLOADS            ::
[warn]  :: ^ see resolution messages for details  ^ ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.mongodb#casbah-gridfs_2.9.2;2.4.1!casbah-gridfs_2.9.2.jar
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[error] {file:/C:/Users/Dave/mongodbtest/}default-a4454c/*:update: sbt.ResolveEx
ception: download failed: org.mongodb#casbah-gridfs_2.9.2;2.4.1!casbah-gridfs_2.
9.2.jar
[error] Total time: 3 s, completed 19-jul-2012 14:20:33
 

Dave

unread,
Jul 19, 2012, 8:47:14 AM7/19/12
to simple-b...@googlegroups.com
It looks like a sbt - ivy hick up and it doesn't move to sonatype.
 
sbt.ResolveException: download failed: org.mongodb#casbah-gridfs_2.9.2;2.4.1!cas
bah-gridfs_2.9.2.jar
        at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:213)
        at sbt.IvyActions$$anonfun$update$1.apply(IvyActions.scala:124)
        at sbt.IvyActions$$anonfun$update$1.apply(IvyActions.scala:123)
        at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:110)
        at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:110)
        at sbt.IvySbt$$anonfun$withIvy$1.apply(Ivy.scala:98)
        at sbt.IvySbt.liftedTree1$1(Ivy.scala:47)
        at sbt.IvySbt.action$1(Ivy.scala:47)
        at sbt.IvySbt$$anon$3.call(Ivy.scala:56)
        at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:75)
        at xsbt.boot.Locks$GlobalLock.withChannelRetries$1(Locks.scala:58)
        at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:
79)
        at xsbt.boot.Using$.withResource(Using.scala:11)
        at xsbt.boot.Using$.apply(Using.scala:10)
        at xsbt.boot.Locks$GlobalLock.liftedTree1$1(Locks.scala:51)
        at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:51)
        at xsbt.boot.Locks$.apply0(Locks.scala:30)
        at xsbt.boot.Locks$.apply(Locks.scala:27)
        at sbt.IvySbt.withDefaultLogger(Ivy.scala:56)
        at sbt.IvySbt.withIvy(Ivy.scala:95)
        at sbt.IvySbt.withIvy(Ivy.scala:91)
        at sbt.IvySbt$Module.withModule(Ivy.scala:110)
        at sbt.IvyActions$.update(IvyActions.scala:123)
        at sbt.Classpaths$$anonfun$work$1$1.apply(Defaults.scala:816)
        at sbt.Classpaths$$anonfun$work$1$1.apply(Defaults.scala:814)
        at sbt.Classpaths$$anonfun$44$$anonfun$45.apply(Defaults.scala:830)
        at sbt.Classpaths$$anonfun$44$$anonfun$45.apply(Defaults.scala:828)
        at sbt.Tracked$$anonfun$lastOutput$1.apply(Tracked.scala:35)
        at sbt.Classpaths$$anonfun$44.apply(Defaults.scala:832)
        at sbt.Classpaths$$anonfun$44.apply(Defaults.scala:827)
        at sbt.Tracked$$anonfun$inputChanged$1.apply(Tracked.scala:45)
        at sbt.Classpaths$.cachedUpdate(Defaults.scala:834)
        at sbt.Classpaths$$anonfun$36.apply(Defaults.scala:734)
        at sbt.Classpaths$$anonfun$36.apply(Defaults.scala:732)
        at sbt.Scoped$$anonfun$hf7$1.apply(Structure.scala:478)
        at sbt.Scoped$$anonfun$hf7$1.apply(Structure.scala:478)
        at scala.Function1$$anonfun$compose$1.apply(Function1.scala:41)
        at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$11.apply(Structu
re.scala:295)
        at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$11.apply(Structu
re.scala:295)
        at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
        at sbt.std.Transform$$anon$5.work(System.scala:67)
        at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:22
1)
        at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:22
1)
        at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
        at sbt.Execute.work(Execute.scala:227)
        at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:221)
        at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:221)
        at sbt.CompletionService$$anon$1$$anon$2.call(CompletionService.scala:26
)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:44
1)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
        at java.lang.Thread.run(Thread.java:662)

[error] {file:/C:/Users/Dave/mongodbtest/}default-a4454c/*:update: sbt.ResolveEx
ception: download failed: org.mongodb#casbah-gridfs_2.9.2;2.4.1!casbah-gridfs_2.
9.2.jar
[error] Total time: 3 s, completed 19-jul-2012 14:22:29
 

Dave

unread,
Jul 19, 2012, 8:59:28 AM7/19/12
to simple-b...@googlegroups.com
Got it, I think 
Version 2.4.1 is not available on
and then sbt/ivy crashes and doesn't move on to sonatype repo

Dave

unread,
Jul 19, 2012, 9:19:00 AM7/19/12
to simple-b...@googlegroups.com
as a workaround I downloaded casbah-gridfs_2.9.2-2.4.1.jar manually from sonatype repo and put it
in C:\Users\Dave\.ivy2\cache\org.mongodb\casbah-gridfs_2.9.2\jars

Op donderdag 19 juli 2012 14:59:28 UTC+2 schreef Dave het volgende:
Reply all
Reply to author
Forward
0 new messages