From dc62067cfe16d5d0184fd1cb0394e2113883ce23 Mon Sep 17 00:00:00 2001 From: ruchikajha95 Date: Thu, 20 Nov 2025 11:29:56 +0100 Subject: [PATCH] Detailed how to skip test while building keycloak Closes #44338 Signed-off-by: Ruchika Jha Signed-off-by: Alexander Schwartz Co-authored-by: Ruchika Jha Co-authored-by: Alexander Schwartz --- docs/building.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/docs/building.md b/docs/building.md index 08e23b2d816..20aa9555c6c 100644 --- a/docs/building.md +++ b/docs/building.md @@ -14,21 +14,24 @@ environment variable (this should be the directory containing `/bin/` or `/jre/` Instead of using a locally installed Maven, call the Maven wrapper script `mvnw` in the main folder of the project. This will use the Maven version which is supported by this project. ---- +--- + First clone the Keycloak repository: git clone https://github.com/keycloak/keycloak.git cd keycloak - -To build Keycloak run: + +To build Keycloak without running the tests: + + ./mvnw clean install -DskipTests + +To build Keycloak and run the tests (note that this might take several hours): ./mvnw clean install - -This will build all modules and run the testsuite. To build Keycloak with adapters run: - ./mvnw clean install -Pdistribution + ./mvnw clean install -DskipTests -Pdistribution To build only the server run: