Re-download a SNAPSHOT version of a dependency using SBT
sbt, scala
Solution
you should try :
libraryDependencies += "org.specs2" %% "specs2" % "1.7-SNAPSHOT" % "test" changing()
`changing()` will specify that the dependency can change and that it ivy must download it on each `update`.
Maybe you could also try to define your repository using `ivyXML`. Something like this :
ivyXML :=
<resolvers>
<ibiblio name="specs2 snapshot repo" changingPattern="*-SNAPSHOT" m2compatible="true" root="http://scala-tools.org/repo-snapshots"/>
</resolvers>
Hope this will help.
Problem
I have the following lines in my `build.sbt` file. ``` resolvers += "specs2 snapshot repo" at "http://scala-tools.org/repo-snapshots" libraryDependencies += "org.specs2" %% "specs2" % "1.7-SNAPSHOT" % "test" ``` Now if the snapshot has changed (is this reasonable at all, that a maven SNAPSHOT version changes without its version number changing?), how can I tell sbt to download the new version? Using `update` does nothing.