Add Java version for compiler plugin

That avoids compilation problems when running commands such as mvn
package without further arguments.