Fix mixed Scala/Java maven compile.