diff --git a/spring-boot-starters/spring-boot-starter-parent/pom.xml b/spring-boot-starters/spring-boot-starter-parent/pom.xml
index caf8e095dc..7ebc12f7ac 100644
--- a/spring-boot-starters/spring-boot-starter-parent/pom.xml
+++ b/spring-boot-starters/spring-boot-starter-parent/pom.xml
@@ -20,6 +20,8 @@
1.6
UTF-8
UTF-8
+ ${java.version}
+ ${java.version}
@@ -62,8 +64,8 @@
org.apache.maven.plugins
maven-compiler-plugin
-
- ${java.version}
+
+ ${maven.compiler.target}