diff --git a/spring-boot-modules/spring-boot-openapi/pom.xml b/spring-boot-modules/spring-boot-openapi/pom.xml
index fba77253cf..b38846cace 100644
--- a/spring-boot-modules/spring-boot-openapi/pom.xml
+++ b/spring-boot-modules/spring-boot-openapi/pom.xml
@@ -55,7 +55,7 @@
${project.basedir}/src/main/resources/api/quotes.yaml
spring
ApiUtil.java
- src/main/resources/templates/JavaSpring
+ ${project.basedir}/src/main/resources/templates/JavaSpring
true