Re: Jars not found in Sonatype

73 views
Skip to first unread message

rktoomey

unread,
Apr 30, 2013, 12:02:22 PM4/30/13
to scala...@googlegroups.com
Hi Eduardo, 

Both the javadoc and source jars are clearly available on Sonatype, so I'm not sure why your search doesn't show them:


Have you declared your dependency correctly?  gen-idea should be looking for salat-(util|core)_2.9.2-1.9.1-(sources|javadoc).jar, not salat-(util|core)_2.9.2-(sources|javadoc).jar.  That makes me think you are either hard-coding something or not using %% correctly.  Your dependency should look like this:

"com.novus" %% "salat" % "1.9.1"

Best,
Rose

On Tuesday, April 30, 2013 11:52:34 AM UTC-4, Eduardo Obando wrote:
On sbt I run the "gen-idea" command, that give me the next warnings:

[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::              FAILED DOWNLOADS            ::
[warn]  :: ^ see resolution messages for details  ^ ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.novus#salat_2.9.2;1.9.1!salat_2.9.2.jar
[warn]  :: com.novus#salat_2.9.2;1.9.1!salat_2.9.2.jar(doc)
[warn]  :: com.novus#salat_2.9.2;1.9.1!salat_2.9.2.jar(src)
[warn]  :: com.novus#salat-util_2.9.2;1.9.1!salat-util_2.9.2.jar(doc)
[warn]  :: com.novus#salat-util_2.9.2;1.9.1!salat-util_2.9.2.jar(src)
[warn]  :: com.novus#salat-core_2.9.2;1.9.1!salat-core_2.9.2.jar(src)
[warn]  :: com.novus#salat-core_2.9.2;1.9.1!salat-core_2.9.2.jar(doc)
[warn]  :: org.mongodb#casbah_2.9.2;2.4.1!casbah_2.9.2.jar(src)
[warn]  :: org.mongodb#casbah_2.9.2;2.4.1!casbah_2.9.2.jar
[warn]  :: org.mongodb#casbah_2.9.2;2.4.1!casbah_2.9.2.jar(doc)
[warn]  :: org.scalaj#scalaj-collection_2.9.1;1.2!scalaj-collection_2.9.1.jar(src)
[warn]  :: org.scalaj#scalaj-collection_2.9.1;1.2!scalaj-collection_2.9.1.jar(doc)
[warn]  :: org.scala-tools.time#time_2.9.1;0.5!time_2.9.1.jar(src)
[warn]  :: org.scala-tools.time#time_2.9.1;0.5!time_2.9.1.jar(doc)
[warn]  :: net.liftweb#lift-json_2.9.1;2.4!lift-json_2.9.1.jar(doc)
[warn]  :: net.liftweb#lift-json_2.9.1;2.4!lift-json_2.9.1.jar(src)
[warn]  :: com.thoughtworks.paranamer#paranamer;2.3!paranamer.jar(src)
[warn]  :: com.thoughtworks.paranamer#paranamer;2.3!paranamer.jar(doc)
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::


I'm able to keep working because I have the binary jar in cache but the src and doc aren't, I search in Sonatype and the jars are missing for every version including snapshots.

This is what I has in the build.sbt

resolvers += "Sonatype Snapshots Repository" at "http://oss.sonatype.org/content/repositories/snapshots/"
resolvers += "Sonatype Releases Repository" at "http://oss.sonatype.org/content/repositories/releases/"

Eduardo Obando

unread,
May 3, 2013, 3:23:07 PM5/3/13
to scala...@googlegroups.com
The library is using scala 2.10.0 so my dependency is: 
"com.novus" % "salat_2.9.2" % "1.9.1"

rose katherine toomey

unread,
May 3, 2013, 3:40:09 PM5/3/13
to scala-salat
If you are using 2.10, use the 2.10 build.

"com.novus" %% "salat" % "1.9.2-SNAPSHOT"


--
You received this message because you are subscribed to the Google Groups "scala-salat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-salat...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

rktoomey

unread,
May 3, 2013, 4:51:40 PM5/3/13
to scala...@googlegroups.com
Your bitbucket project shows you are still using 2.10 with salat 2.9.2.  Try this instead.

name := "sample"

version := "0.0.1"

organization := "org.sample"

scalaVersion := "2.10.0"

resolvers += "Sonatype OSS Releases" at "https://oss.sonatype.org/content/repositories/releases"

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

resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"

//Casbah, Scalatest, akka, salat
libraryDependencies ++= Seq(
   "com.novus" %% "salat" % "1.9.2-SNAPSHOT"
)

Which downloads documentation and jars just fine.


Note that salat itself is an aggregator pom for salat-util and salat-core, so javadoc and sources are not provided for salat itself.  You should see, just like in the gist, javadoc and sources for salat-core and salat-util downloaded however.

On Friday, May 3, 2013 4:39:55 PM UTC-4, Eduardo Obando wrote:
I downgraded the project to 2.9.2 the problem still happens, here's the repository

rktoomey

unread,
May 3, 2013, 5:42:50 PM5/3/13
to scala...@googlegroups.com
Sure, but the reason gen-idea downloads no source or documentation for salat_2.10 or salat_2.9.2 is that it is an aggregator pom for salat-core and salat-util.  This is an expected "error".

On Friday, May 3, 2013 5:38:41 PM UTC-4, Eduardo Obando wrote:
With the snapshot it downloaded everything, that resolve the 2.10 issue.

With the bitbucket project I forgot to push the downgraded build.sbt, now it's the one with 2.9.2
Reply all
Reply to author
Forward
0 new messages