diff --git a/js/apps/account-ui/pom.xml b/js/apps/account-ui/pom.xml
index 203fad0206..356af6bfa1 100644
--- a/js/apps/account-ui/pom.xml
+++ b/js/apps/account-ui/pom.xml
@@ -56,13 +56,6 @@
maven-resources
-
- dist
- theme/keycloak.v3/account/resources
-
- index.html
-
-
diff --git a/js/apps/account-ui/vite.config.ts b/js/apps/account-ui/vite.config.ts
index d3d666f7df..64a0b4113a 100644
--- a/js/apps/account-ui/vite.config.ts
+++ b/js/apps/account-ui/vite.config.ts
@@ -31,6 +31,7 @@ export default defineConfig(({ mode }) => {
port: 5173,
},
build: {
+ outDir: "target/classes/theme/keycloak.v3/account/resources",
...lib,
sourcemap: true,
target: "esnext",
diff --git a/js/apps/admin-ui/pom.xml b/js/apps/admin-ui/pom.xml
index 4e7a668c89..6134c39eca 100644
--- a/js/apps/admin-ui/pom.xml
+++ b/js/apps/admin-ui/pom.xml
@@ -56,13 +56,6 @@
maven-resources
-
- dist
- theme/keycloak.v2/admin/resources
-
- index.html
-
-
diff --git a/js/apps/admin-ui/vite.config.ts b/js/apps/admin-ui/vite.config.ts
index 0d7b511bef..fe229c3307 100644
--- a/js/apps/admin-ui/vite.config.ts
+++ b/js/apps/admin-ui/vite.config.ts
@@ -10,6 +10,7 @@ export default defineConfig({
port: 5174,
},
build: {
+ outDir: "target/classes/theme/keycloak.v2/admin/resources",
sourcemap: true,
target: "esnext",
modulePreload: false,
diff --git a/js/pom.xml b/js/pom.xml
index 3b21df22db..f624e8ea7a 100644
--- a/js/pom.xml
+++ b/js/pom.xml
@@ -26,7 +26,5 @@
src
-
- dist