diff --git a/spring-boot-starters/spring-boot-starter-parent/pom.xml b/spring-boot-starters/spring-boot-starter-parent/pom.xml
index 5837b53b32..caf8e095dc 100644
--- a/spring-boot-starters/spring-boot-starter-parent/pom.xml
+++ b/spring-boot-starters/spring-boot-starter-parent/pom.xml
@@ -127,8 +127,7 @@
true
yyyy-MM-dd'T'HH:mm:ssZ
true
-
- target/classes/git.properties
+ ${project.build.outputDirectory}/git.properties