Last active
November 10, 2021 07:42
-
-
Save FireBurn/d0d43a406cf3f179efb7c9955b9f4725 to your computer and use it in GitHub Desktop.
Compile OpenAM CE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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