Add support for Scala cross-versioning in Maven sample.