sbt 0.11.3 and Sonatype repo

318 views
Skip to first unread message

Dave

unread,
Jul 19, 2012, 7:27:35 AM7/19/12
to simple-b...@googlegroups.com
sbt 0.11.3 doesn't seem to look for Sonatype repo: https://oss.sonatype.org/content/repositories/releases
 
only for the central maven repo.
 
My .sbt/plugins/build.sbt looks like:
 
resolvers += Classpaths.typesafeResolver
resolvers += ScalaToolsReleases
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.1.0")
sbtVersion in update := "0.11.3"
 
as for 0.11.3 ScalaToolsReleases should be pointing to https://oss.sonatype.org/content/repositories/releases
I also tried the direct link but it doesn't matter.
Am I missing something?

Dave

unread,
Jul 19, 2012, 7:34:59 AM7/19/12
to simple-b...@googlegroups.com
This is the update:
even when I out comment resolvers += Classpaths.typesafeResolver it i sstill only looking for the central maven repo
 
any clues?
 
> 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 ...
[warn]  module not found: org.mongodb#casbah-util_2.9.2;2.4.1
[warn] ==== local: tried
[warn]   C:\Users\Dave\.ivy2/local/org.mongodb/casbah-util_2.9.2/2.4.1/ivys/ivy.
xml
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/org/mongodb/casbah-util_2.9.2/2.4.1/casba
h-util_2.9.2-2.4.1.pom
[info] Resolving org.mongodb#casbah-commons_2.9.2;2.4.1 ...
[warn]  module not found: org.mongodb#casbah-commons_2.9.2;2.4.1
[warn] ==== local: tried
[warn]   C:\Users\Dave\.ivy2/local/org.mongodb/casbah-commons_2.9.2/2.4.1/ivys/i
vy.xml
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/org/mongodb/casbah-commons_2.9.2/2.4.1/ca
sbah-commons_2.9.2-2.4.1.pom
[info] Resolving org.mongodb#casbah-core_2.9.2;2.4.1 ...
[warn]  module not found: org.mongodb#casbah-core_2.9.2;2.4.1
[warn] ==== local: tried
[warn]   C:\Users\Dave\.ivy2/local/org.mongodb/casbah-core_2.9.2/2.4.1/ivys/ivy.
xml
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/org/mongodb/casbah-core_2.9.2/2.4.1/casba
h-core_2.9.2-2.4.1.pom
[info] Resolving org.mongodb#casbah-query_2.9.2;2.4.1 ...
[warn]  module not found: org.mongodb#casbah-query_2.9.2;2.4.1
[warn] ==== local: tried
[warn]   C:\Users\Dave\.ivy2/local/org.mongodb/casbah-query_2.9.2/2.4.1/ivys/ivy
.xml
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/org/mongodb/casbah-query_2.9.2/2.4.1/casb
ah-query_2.9.2-2.4.1.pom
[info] Resolving org.mongodb#casbah-gridfs_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 com.novus#salat-core_2.9.2;0.0.9 ...
[warn]  module not found: com.novus#salat-core_2.9.2;0.0.9
[warn] ==== local: tried
[warn]   C:\Users\Dave\.ivy2/local/com.novus/salat-core_2.9.2/0.0.9/ivys/ivy.xml
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/com/novus/salat-core_2.9.2/0.0.9/salat-co
re_2.9.2-0.0.9.pom
[warn]  [NOT FOUND  ] org.mongodb#casbah-gridfs_2.9.2;2.4.1!casbah-gridfs_2.9.2.
jar (78ms)
[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]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.mongodb#casbah-util_2.9.2;2.4.1: not found
[warn]  :: org.mongodb#casbah-commons_2.9.2;2.4.1: not found
[warn]  :: org.mongodb#casbah-core_2.9.2;2.4.1: not found
[warn]  :: org.mongodb#casbah-query_2.9.2;2.4.1: not found
[warn]  :: com.novus#salat-core_2.9.2;0.0.9: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[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: unresolved dependency: org.mongodb#casbah-util_2.9.2;2.4.1: not found
[error] unresolved dependency: org.mongodb#casbah-commons_2.9.2;2.4.1: not found
[error] unresolved dependency: org.mongodb#casbah-core_2.9.2;2.4.1: not found
[error] unresolved dependency: org.mongodb#casbah-query_2.9.2;2.4.1: not found
[error] unresolved dependency: com.novus#salat-core_2.9.2;0.0.9: not found
[error] download failed: org.mongodb#casbah-gridfs_2.9.2;2.4.1!casbah-gridfs_2.9
.2.jar
[error] Total time: 2 s, completed 19-jul-2012 13:27:51
 
 
 
 

Op donderdag 19 juli 2012 13:27:35 UTC+2 schreef Dave het volgende:

Josh Suereth

unread,
Jul 19, 2012, 8:01:28 AM7/19/12
to simple-b...@googlegroups.com
Resolvers can be different between plugins + the project itself.   Your project/plugins.sbt only needs the resolvers for project plugins.   You need to put project dependency resolvers in build.sbt or your project/build.scala file.

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To view this discussion on the web visit https://groups.google.com/d/msg/simple-build-tool/-/8wkIOo96wswJ.
To post to this group, send email to simple-b...@googlegroups.com.
To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.

Dave

unread,
Jul 19, 2012, 8:13:05 AM7/19/12
to simple-b...@googlegroups.com
Copying the resolvers in my build.sbt seems to make it search on the repos.
 
name := "mongodbtest"
version := "0.1"
organization := "org.mytest"
scalaVersion := "2.9.2"
scalacOptions ++= Seq("-deprecation", "-unchecked")
resolvers += Classpaths.typesafeResolver
resolvers += ScalaToolsReleases
libraryDependencies ++= Seq (
  "org.mongodb" %% "casbah" % "2.4.1",
  "com.novus" %% "salat-core" % "0.0.9"
)
 
But still it is strange that the resolvers have to be explicit and are not taken by default from .sbt/plugins/build.sbt. 
 
At least I have a clue
 
Thanks.
 
 

Op donderdag 19 juli 2012 14:01:28 UTC+2 schreef jsuereth het volgende:
Resolvers can be different between plugins + the project itself.   Your project/plugins.sbt only needs the resolvers for project plugins.   You need to put project dependency resolvers in build.sbt or your project/build.scala file.

On Thu, Jul 19, 2012 at 7:27 AM, Dave  wrote:
sbt 0.11.3 doesn't seem to look for Sonatype repo: https://oss.sonatype.org/content/repositories/releases
 
only for the central maven repo.
 
My .sbt/plugins/build.sbt looks like:
 
resolvers += Classpaths.typesafeResolver
resolvers += ScalaToolsReleases
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.1.0")
sbtVersion in update := "0.11.3"
 
as for 0.11.3 ScalaToolsReleases should be pointing to https://oss.sonatype.org/content/repositories/releases
I also tried the direct link but it doesn't matter.
Am I missing something?

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To view this discussion on the web visit https://groups.google.com/d/msg/simple-build-tool/-/8wkIOo96wswJ.
To post to this group, send email to simple-build-tool@googlegroups.com.
To unsubscribe from this group, send email to simple-build-tool+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages