diff --git a/scripts/generator/templates/template-vaadin-platform-javadoc-pom.xml b/scripts/generator/templates/template-vaadin-platform-javadoc-pom.xml
index 23cb957c9..fa6ab031c 100644
--- a/scripts/generator/templates/template-vaadin-platform-javadoc-pom.xml
+++ b/scripts/generator/templates/template-vaadin-platform-javadoc-pom.xml
@@ -81,7 +81,11 @@
com.vaadin
vaadin-spring
- ${flow.version}
+ provided
+
+
+ com.vaadin
+ hilla-endpoint
provided