Skip to content

Instantly share code, notes, and snippets.

@FireBurn
Last active November 10, 2021 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FireBurn/d0d43a406cf3f179efb7c9955b9f4725 to your computer and use it in GitHub Desktop.
Save FireBurn/d0d43a406cf3f179efb7c9955b9f4725 to your computer and use it in GitHub Desktop.
Compile OpenAM CE
#!/bin/sh
OPENAM_VERSION=11.0.3
OPENDJ_VERSION=2.6.4
# Make OpenDJ first
git clone https://github.com/ForgeRock/opendj-community-edition-${OPENDJ_VERSION}.git OpenDJ
cd OpenDJ
ant
mvn install:install-file -DgroupId=org.forgerock.ce.opendj -DartifactId=opendj-server -Dversion=${OPENDJ_VERSION} -Dpackaging=jar -Dfile=build/package/OpenDJ-${OPENDJ_VERSION}/lib/OpenDJ.jar
# Download OpenAM source code
cd ..
git clone https://github.com/ForgeRock/openam-community-edition-11.0.3.git OpenAM
# Unzip and repackage OpenDJ into OpenAM
unzip OpenDJ/build/package/OpenDJ-${OPENDJ_VERSION}.zip -d OpenAM/openam-distribution/src/main/opendj/
cd OpenAM/openam-distribution/src/main/opendj/
./create_opendj_zip.sh opendj
cd ../../../../..
cp OpenAM/openam-distribution/src/main/opendj/opendj.zip OpenAM/openam-server-only/binary/
# Build OpenAM
cd OpenAM
MAVEN_OPTS=-Xmx2048M mvn clean install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment