We set <project.build.targetJdk>8</project.build.targetJdk> and then <source>${project.build.targetJdk}</source> and <release>${project.build.targetJdk}</release> for maven-compiler-plugin. When we use scala-maven-plugin this values are ignored. The plugin seems to be affecting these properties. If we remove the plugin it works correctly.