diff --git a/dependencies/admin-ui/pom.xml b/dependencies/admin-ui/pom.xml
deleted file mode 100755
index 02d2757632..0000000000
--- a/dependencies/admin-ui/pom.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
-
-
- keycloak-dependencies-parent
- org.keycloak
- 999.0.0-SNAPSHOT
-
-
- 4.0.0
- keycloak-dependencies-admin-ui-wrapper
- jar
- Keycloak Admin UI BOM wrapper
-
- BOM wrapper for Admin UI to limit Sonatype snapshot repository to admin-ui
-
-
-
-
- org.keycloak
- keycloak-admin-ui
- jar
-
-
-
-
-
- sonatype-snapshots
- Sonatype Snapshots
- https://s01.oss.sonatype.org/content/repositories/snapshots/
-
- true
- daily
-
-
- false
-
-
-
-
-
diff --git a/dependencies/pom.xml b/dependencies/pom.xml
index d649bb43df..019146bf55 100755
--- a/dependencies/pom.xml
+++ b/dependencies/pom.xml
@@ -35,18 +35,4 @@
server-all
-
-
- skip-admin2
-
-
- !skipAdmin2
-
-
-
- admin-ui
-
-
-
-
diff --git a/docs/maven-plugin/pom.xml b/docs/maven-plugin/pom.xml
index 988a44d649..04b88566c6 100644
--- a/docs/maven-plugin/pom.xml
+++ b/docs/maven-plugin/pom.xml
@@ -57,12 +57,6 @@
org.keycloak
keycloak-quarkus-server
-
-
- org.keycloak
- keycloak-admin-ui
-
-
org.freemarker
diff --git a/js/apps/admin-ui/maven-resources/META-INF/keycloak-themes.json b/js/apps/admin-ui/maven-resources/META-INF/keycloak-themes.json
new file mode 100644
index 0000000000..4bd6558702
--- /dev/null
+++ b/js/apps/admin-ui/maven-resources/META-INF/keycloak-themes.json
@@ -0,0 +1,10 @@
+{
+ "themes": [
+ {
+ "name": "keycloak.v2",
+ "types": [
+ "admin"
+ ]
+ }
+ ]
+}
diff --git a/js/apps/admin-ui/maven-resources/theme/keycloak.v2/admin/theme.properties b/js/apps/admin-ui/maven-resources/theme/keycloak.v2/admin/theme.properties
new file mode 100644
index 0000000000..f1dbb7215d
--- /dev/null
+++ b/js/apps/admin-ui/maven-resources/theme/keycloak.v2/admin/theme.properties
@@ -0,0 +1 @@
+parent=base
\ No newline at end of file
diff --git a/js/apps/admin-ui/pom.xml b/js/apps/admin-ui/pom.xml
new file mode 100644
index 0000000000..9f48339713
--- /dev/null
+++ b/js/apps/admin-ui/pom.xml
@@ -0,0 +1,119 @@
+
+
+ 4.0.0
+
+
+ keycloak-js-parent
+ org.keycloak
+ 999.0.0-SNAPSHOT
+ ../../pom.xml
+
+
+ keycloak-admin-ui
+
+ Keycloak Admin UI
+ The user inferface to administrate the Keycloak server.
+
+
+
+
+ maven-resources
+
+
+ dist
+ theme/keycloak.v2/admin/resources
+
+ index.html
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-deploy-plugin
+
+ true
+
+
+
+ com.github.eirslett
+ frontend-maven-plugin
+
+
+ npm-build
+
+ npm
+
+
+ run build --workspace=admin-ui
+
+
+
+
+ ../..
+
+
+
+ com.google.code.maven-replacer-plugin
+ maven-replacer-plugin
+
+
+ process-resources
+
+ replace
+
+
+
+
+ dist/index.html
+ target/classes/theme/keycloak.v2/admin/index.ftl
+ false
+
+
+ src="./
+ src="${resourceUrl}/
+
+
+ href="./
+ href="${resourceUrl}/
+
+
+ ]]>
+
+
+ {
+ "loginRealm": "${loginRealm!"master"}",
+ "authServerUrl": "${authServerUrl}",
+ "authUrl": "${authUrl}",
+ "consoleBaseUrl": "${consoleBaseUrl}",
+ "resourceUrl": "${resourceUrl}",
+ "masterRealm": "${masterRealm}",
+ "resourceVersion": "${resourceVersion}",
+ "isRunningAsTheme": true
+ }
+
+