Skip to content

Instantly share code, notes, and snippets.

@bdelbosc
Created June 2, 2020 12:57
Show Gist options
  • Save bdelbosc/eac19a0dd027e078b6272330714c2d32 to your computer and use it in GitHub Desktop.
Save bdelbosc/eac19a0dd027e078b6272330714c2d32 to your computer and use it in GitHub Desktop.
Build a nuxeo-server-tomcat zip from the source
#!/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