making Scala maven plugin work with Java 8