mvn package
Build this theme .jar file with:
# build the theme and wrap it in a .jar file
mvn package
# move theme to /tmp/theme/ folder for futur use by keycloak
mkdir -p /tmp/theme && cp -v target/*.jar /tmp/theme/Then start Keycloak IAM (in single-node mode) locally through docker and use the host /tmp/theme folder as Keycloak deployment directory using the watch.sh script
./watch.shConnect to Keycloak console http://localhost:8080, click on Themes tab, and select hook0 in front of Login Theme.
If you want to activate the login, email or other theme, open :
src/main/resources/META-INF/keycloak-themes.jsonchange the type to put the themes you want :
{
"themes": [{
"name" : "hook0",
"types": [ "login", "email" ]
}]
}