marcelo
marcelo

Reputation: 193

Error with Play 2.0 Scala

When trying to run some of the Scala samples using Play2 (zentasks) I get the following errors:

==== Maven Central: tried

http://repo1.maven.org/maven2/org/scala-sbt/sbt_2.9.1/0.12.0/sbt_2.9.1-0.12.0.pom

::::::::::::::::::::::::::::::::::::::::::::::

::          UNRESOLVED DEPENDENCIES         ::

::::::::::::::::::::::::::::::::::::::::::::::

:: org.scala-sbt#sbt_2.9.1;0.12.0: not found

::::::::::::::::::::::::::::::::::::::::::::::

I have checked the following:

  1. sbt version = 0.12.1
  2. scala = 2.9.2
  3. jvm = 1.6.0_37
  4. play 2.0.4

My project/build.properties is the following:

sbt.version=0.11.3

I've changed sbt version to 0.12.1; however, it seems that Play2 (this version) runs its own Scala and sbt version. My project/plugins.sbt is:

// Comment to get more information during initialization
logLevel := Level.Warn

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

resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/repo1/"

// Use the Play sbt plugin for Play projects
addSbtPlugin("play" % "sbt-plugin" % "2.0.4")

I am able to create a "new" project (working in prod) without any issues, but I can't run any of the samples. I also tried it on some others projects (deadbolt2) and had the same issue.

Upvotes: 0

Views: 788

Answers (0)

Related Questions