Created
June 2, 2020 12:57
-
-
Save bdelbosc/eac19a0dd027e078b6272330714c2d32 to your computer and use it in GitHub Desktop.
Build a nuxeo-server-tomcat zip from the source
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/bash | |
SRC=${SRC:-/home/ben/dev/nuxeo.git} | |
set -x | |
set -e | |
export MAVEN_OPTS="-Xmx4g -Xms4g -XX:+TieredCompilation -XX:TieredStopAtLevel=1" | |
cd $SRC | |
if [ -f ./modules/pom.xml ]; then | |
export JAVA_HOME=$JAVA_11_HOME | |
DIRECTORY=server | |
else | |
export JAVA_HOME=$JAVA_8_HOME | |
DIRECTORY=nuxeo-distribution | |
fi | |
time mvn -nsu -am -pl $DIRECTORY/nuxeo-server-tomcat -Paddons,distrib -DskipTests=true -DexcludeGroupIds=org.nuxeo -T6 install -Dnuxeo.skip.enforcer=true | |
echo "### Done: " | |
ls -lh $SRC/$DIRECTORY/nuxeo-server-tomcat/target/nuxeo-server-tomcat-*.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment