-
Notifications
You must be signed in to change notification settings - Fork 48
Manual: building scim for keycloak with java and maven
Pascal Knüppel edited this page Oct 9, 2021
·
1 revision
Building the scim-for-keycloak project and using it is fairly simple but it requires some preparation that might be especially difficult for people who have no experience in Java developing. Therefore this manual will provide a step by step list how you will be able to build the scim-for-keycloak project.
- download a JDK distribution and install it on your machine: https://openjdk.java.net/install/
- Be careful with OracleJDK 9 and higher since the license restrictions need to be respected.
- The project is fully compatible with JDK 8 so you may also use OracleJDK 8 that still has a more loose license
- install the jdk and verify that you can access java-commands on your command line:
java -version
should produce a similiar output:openjdk version "11.0.11" 2021-04-20 OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04) OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)
- install maven
- Install on linux
- installing on linux is actually easier than on windows because at least most linux systems have their own install command for maven e.g. for ubuntu :
sudo apt install maven
- installing on linux is actually easier than on windows because at least most linux systems have their own install command for maven e.g. for ubuntu :
- install on windows
- download apache maven: https://maven.apache.org/download.cgi
- unzip the apache-maven file in any directory of your choice
- set environment variable JAVA_HOME to your JDK installation
- add maven-bin directory to your PATH environment variable:
- e.g. in my case: PATH=...;C:\Program Files\Java\apache-maven-3.6.3\bin;...
- open a new console and execute:
mvn -version
and you should get a similiar output:Java version: 11.0.12, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-11.0.12 Default locale: de_DE, platform encoding: Cp1252 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
- Install on linux
- checkout scim-for-keycloak with git
git clone https://github.com/Captain-P-Goldfish/scim-for-keycloak/
- checkout a release-tag as described in the
README.MD
of the project
- Open a terminal in ${path-to-scim-for-keycloak} and execute
mvn clean package -DskipTests
- find the scim-for-keycloak artifact in: scim-for-keycloak/scim-for-keycloak-deployment/target/scim-for-keycloak-kc-${keycloak.version}-b${project.incremental.version}.ear