increase heap size for maven process in build script to 2g using MAVEN_OPTS

This commit is contained in:
Axel Uhl committed 2020-04-03 13:57:53 +02:00
1 parent 3a12c54d0a
commit 4329528f43
1 file changed
+1
+1
View File
@@ -708,6 +708,7 @@ if [[ "$@" == "build" ]] || [[ "$@" == "all" ]]; then
echo "Using following command: mvn $extra -DargLine=\"$APP_PARAMETERS\" -fae -s $MAVEN_SETTINGS $clean install"
echo "Maven version used: `mvn --version`"
echo "JAVA_HOME used: $JAVA_HOME"
export MAVEN_OPTS="-Xmx2g"
mvn $extra -DargLine="$APP_PARAMETERS" -fae -s $MAVEN_SETTINGS $clean install 2>&1 | tee -a $START_DIR/build.log
# now get the exit status from mvn, and not that of tee which is what $? contains now
MVN_EXIT_CODE=${PIPESTATUS[0]}