diff --git a/generators/server/templates/_pom.xml b/generators/server/templates/_pom.xml
index b59eb8a17656..287a250a41ed 100644
--- a/generators/server/templates/_pom.xml
+++ b/generators/server/templates/_pom.xml
@@ -1299,6 +1299,15 @@
${frontend-maven-plugin.version}
<%_ if (clientPackageManager === 'yarn') { _%>
+
+ yarn install
+
+ yarn
+
+
+ install --mutex file
+
+
install node and yarn