leon / play-salat

MongoDB / Salat plugin for Play 2 [MOVED]
https://github.com/cloudinsights/play-salat
Other
201 stars 52 forks source link

Unresolved dependency. #28

Closed chadhq closed 12 years ago

chadhq commented 12 years ago

[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES :: [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: net.liftweb#lift-json_2.9.1;2.5-SNAPSHOT: not found [warn] :::::::::::::::::::::::::::::::::::::::::::::: [error] {file:/Users/username/Development/rep/}fly/*:update: sbt.ResolveException: unresolved dependency: net.liftweb#lift-json_2.9.1;2.5-SNAPSHOT: not found

I am receiving this unresolved dependency. Here is by Build.scala:

val appName = "fly" val appVersion = "1.0-SNAPSHOT"

val appDependencies = Seq(
  // Add your project dependencies here,

  "se.radley" %% "play-plugins-salat" % "1.0.9",
  "org.jba" %% "play2-mustache" % "0.4",
  "com.twitter" %% "util-core" % "4.0.1",
  "it.justwrote" %% "scala-faker" % "0.2-SNAPSHOT",
  "com.github.twitter" % "bootstrap" % "2.1.0",
  "jp.t2v" %% "play20.auth" % "0.2",

  "com.twitter" % "cassie" % "0.19.0" excludeAll(
    ExclusionRule(organization = "javax.jms"),
    ExclusionRule(organization = "com.sun.jdmk"),
    ExclusionRule(organization = "com.sun.jmx")
  )

  // exclude("com.sun.jmx", "jmx")
)

// appDependencies +=  "com.twitter" % "cassie" % "0.19.0"

val main = PlayProject(appName, appVersion, appDependencies, mainLang = SCALA).settings(
    // Add your own project settings here      
    resolvers += "Twitter's Repository" at "http://maven.twttr.com/",
    resolvers += Resolver.url("julienba.github.com", url("http://julienba.github.com/repo/"))(Resolver.ivyStylePatterns),
    resolvers += "justwrote" at "http://repo.justwrote.it/snapshots/",  //Scala Faker
    resolvers += "webjars" at "http://webjars.github.com/m2",
    resolvers += "t2v.jp repo" at "http://www.t2v.jp/maven-repo/",

    routesImport += "se.radley.plugin.salat.Binders._",

    templatesImport += "org.bson.types.ObjectId"
    //templatesImport += "org.jba.Mustache"
    )

}

chadhq commented 12 years ago

Hello, fixed the issue, I added resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"

to the Build.scala

Sorry if i missed that in the doco somewhere?

mattrco commented 12 years ago

I am having the same issue. Unfortunately the resolver you listed is currently returning a 502 for me.

Looking at the other resolvers, the net.liftweb#lift-json_2.9.1;2.5-SNAPSHOT!lift-json_2.9.1.jar is missing: http://repo.typesafe.com/typesafe/releases/net/liftweb/lift-json_2.9.1/ http://repo1.maven.org/maven2/net/liftweb/lift-json_2.9.1/

Edit: a closer look shows that this is a salat dependency:

https://github.com/novus/salat/blob/master/project/SalatBuild.scala#L159

jeantil commented 12 years ago

There was a problem with the typesafe repository around 10pm GMT 2012-09-04, it stayed down for a while. After it was brought back up snapshot dependencies wouldn't resolve. not really play-salat faults.

If anyone knows how to tell sbt not to bother checking for newer versions of snapshot it would alleviate the pain ... somthing like the --no-snapshot-updates of maven ?

hiltym commented 12 years ago

Another possible solution would be to upgrade to the latest Salat (1.9.1). It reverted back to lift-json 2.4.

hiltym commented 12 years ago

Btw, I can confirm that upgrading to Salat 1.9.1 would solve the problem. I've tried it locally (by modifying a local copy of play-salat).

leon commented 12 years ago

I've releases a 1.1-SNAPSHOT version that is has the new 1.9.1 of salat. If you'd like to try it out, simply change from version 1.0.9 and make shure you have the snapshot repo in you resolvers

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