harrah/xsbt — Issue #337: publish-local publishes ivy file with wrong version of dependency
Author: greenrd
Created: 2012-01-17 13:27:06+00:00
State: open

This is with 0.11.2.

I had previously tried to upgrade a dependency to scala-arm version 1.1, but I had to downgrade it to version 1.0 again because scala 2.8.1 wasn't supported for scala-arm 1.1. However, running publish-local generates an incorrect ivy file that says the dependency is scala-arm version 1.1, not 1.0. I tried again several times and I still get the incorrect ivy file.

Stepping through in jdb, Ivy appears to be looking at

$HOME/.ivy2/cache/resolved-default-foo-bar_2.8.1-0.2-SNAPSHOT.xml

which is days old according to its modification date, and also has the incorrect dependency version in it. Deleting this file and re-running sbt publish-local triggers a re-resolve, which fixes the problem.