Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Unable to build admin-ui jar with 26.1

101 views
Skip to first unread message

Andre

unread,
Feb 11, 2025, 3:04:13 AMFeb 11
to Keycloak User
Since keycloak 26.1.0 I am unable to properly build the keycloak admin ui jar.
I have some customizations (that work with 26.0.7 - last version I compiled it with) and build the admin-ui jar with

```
 ./mvnw package -DskipTests -pl js/apps/admin-ui
```

when running with my customizations the build succeeds:

```
...
[INFO] Keycloak ........................................... SUCCESS [  0.956 s]
[INFO] Keycloak JavaScript Parent ......................... SUCCESS [  3.480 s]
[INFO] Keycloak Admin UI .................................. SUCCESS [  0.631 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
```

the resulting jar is only 437K of size - compared to the ~4.5MB of the one when I check the 26.1 docker image from quay.io.

When diffing I notice that the jar built with mvnw is missing the javascript sources in theme/keycloak_v2/admin/resources.

Thanks

Andre

unread,
Apr 16, 2025, 5:06:15 PMApr 16
to Keycloak User
the following works:

cd js
pnpm install --prefer-offline --frozen-lockfile
pnpm --fail-if-no-match --filter keycloak-admin-ui build
cd ..

and then

./mvnw -DskipTests package -pl js/apps/admin-ui
Reply all
Reply to author
Forward
0 new messages