Sto aggiungendo il repository Joda Time a SBT con
libraryDependencies ++= Seq(
"joda-time" % "joda-time" % "2.1"
)
Quindi lo uso allegramente in questo modo:
val ymd = org.joda.time.format.DateTimeFormat.forPattern("yyyyMMdd")
ymd.parseDateTime("20121212")
Ma, quando compilo il progetto in SBT, ottengo un brutto:
[warn] Class org.joda.convert.FromString not found - continuing with a stub.
[warn] Caught: java.lang.NullPointerException while parsing annotations in /home/jack/.ivy2/cache/joda-time/joda-time/jars/joda-time-2.1.jar(org/joda/time/DateTime.class)
[error] error while loading DateTime, class file '/home/jack/.ivy2/cache/joda-time/joda-time/jars/joda-time-2.1.jar(org/joda/time/DateTime.class)' is broken
[error] (class java.lang.RuntimeException/bad constant pool tag 10 at byte 42)
Ho provato la versione 2.0 di joda-time, ma ottengo lo stesso errore.