diff --git a/distribution/appliance-dist/pom.xml b/distribution/appliance-dist/pom.xml
index 94a00cf790..2624c09215 100755
--- a/distribution/appliance-dist/pom.xml
+++ b/distribution/appliance-dist/pom.xml
@@ -88,6 +88,7 @@
keycloak-js-adapter
${project.version}
${project.build.directory}/unpacked/js-adapter
+ *.js
**/welcome-content/*
diff --git a/distribution/war-dist/pom.xml b/distribution/war-dist/pom.xml
index 92d7215e10..d39f673a8b 100755
--- a/distribution/war-dist/pom.xml
+++ b/distribution/war-dist/pom.xml
@@ -89,6 +89,7 @@
keycloak-js-adapter
${project.version}
${project.build.directory}/unpacked/js-adapter
+ *.js