harrah/xsbt — Issue #231: ScalaTest assigned incorrect URL
Author: mslinn
Created: 2011-10-18 19:07:22+00:00
State: open

$ cat project/build.sbt
scalaVersion := "2.9.1"

resolvers += Classpaths.typesafeResolver

resolvers += "sbt-idea-repo" at "http://mpeltonen.github.com/maven/"

addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "0.11.0")

addSbtPlugin("com.typesafe.startscript" % "xsbt-start-script-plugin" % "0.3.0")

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse" % "1.4.0")

addSbtPlugin("org.scalatest" % "scalatest" % "1.6.1")

$ sbt update test
[info] Loading project definition from E:\work\experiments\scala\helloblueeyes\project
[info] Updating {file:/E:/work/experiments/scala/helloblueeyes/project/}default-3b8c51...
[warn] module not found: org.scalatest#scalatest;1.6.1
[warn] ==== typesafe-ivy-releases: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/org.scalatest/scalatest/scala_2.9.1/sbt_0.11.0/1.6.1/ivys/ivy.xml
[warn] -- artifact org.scalatest#scalatest;1.6.1!scalatest.jar:
[warn] http://repo.typesafe.com/typesafe/ivy-releases/org.scalatest/scalatest/scala_2.9.1/sbt_0.11.0/1.6.1/jars/scalatest.jar
[warn] ==== local: tried
[warn] C:\Users\Mike Slinn\.ivy2/local/org.scalatest/scalatest/scala_2.9.1/sbt_0.11.0/1.6.1/ivys/ivy.xml
[warn] -- artifact org.scalatest#scalatest;1.6.1!scalatest.jar:
[warn] C:\Users\Mike Slinn\.ivy2/local/org.scalatest/scalatest/scala_2.9.1/sbt_0.11.0/1.6.1/jars/scalatest.jar
[warn] ==== typesafe-ivy-releases: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/org.scalatest/scalatest/scala_2.9.1/sbt_0.11.0/1.6.1/ivys/ivy.xml
[warn] -- artifact org.scalatest#scalatest;1.6.1!scalatest.jar:
[warn] http://repo.typesafe.com/typesafe/ivy-releases/org.scalatest/scalatest/scala_2.9.1/sbt_0.11.0/1.6.1/jars/scalatest.jar
[warn] ==== sbt-idea-repo: tried
[warn] http://mpeltonen.github.com/maven/org/scalatest/scalatest_2.9.1_0.11.0/1.6.1/scalatest-1.6.1.pom
[warn] -- artifact org.scalatest#scalatest;1.6.1!scalatest.jar:
[warn] http://mpeltonen.github.com/maven/org/scalatest/scalatest_2.9.1_0.11.0/1.6.1/scalatest-1.6.1.jar
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/org/scalatest/scalatest_2.9.1_0.11.0/1.6.1/scalatest-1.6.1.pom
[warn] -- artifact org.scalatest#scalatest;1.6.1!scalatest.jar:
[warn] http://repo1.maven.org/maven2/org/scalatest/scalatest_2.9.1_0.11.0/1.6.1/scalatest-1.6.1.jar
[warn] ==== Scala-Tools Maven2 Repository: tried
[warn] http://scala-tools.org/repo-releases/org/scalatest/scalatest_2.9.1_0.11.0/1.6.1/scalatest-1.6.1.pom
[warn] -- artifact org.scalatest#scalatest;1.6.1!scalatest.jar:
[warn] http://scala-tools.org/repo-releases/org/scalatest/scalatest_2.9.1_0.11.0/1.6.1/scalatest-1.6.1.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.scalatest#scalatest;1.6.1: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] org.scalatest:scalatest:1.6.1 (sbtVersion=0.11.0, scalaVersion=2.9.1)
[warn]
[error] {file:/E:/work/experiments/scala/helloblueeyes/project/}default-3b8c51/*:update: sbt.ResolveException: unresolved dependency: org.scalatest#scalatest;1.6.1: not found
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?

The correct URL for the ScalaTest dependency does not have the SBT version in it:
http://www.scala-tools.org/repo-releases/org/scalatest/scalatest_2.9.1/1.6.1/
How can I modify build.sbt so the correct URL is generated?