Skip to content

Commit

Permalink
MAVEN_CLI_OPTS
Browse files Browse the repository at this point in the history
  • Loading branch information
pan3793 committed Jul 3, 2021
1 parent 44907b6 commit 309e45b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions build/mvn
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@
_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Preserve the calling directory
_CALLING_DIR="$(pwd)"
# Options used during compilation
_COMPILE_JVM_OPTS="-Xmx1g"

if [ "$CI" ]; then
_COMPILE_JVM_OPTS="${_COMPILE_JVM_OPTS} --batch-mode --no-transfer-progress"
export MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end"
fi

# Installs any application tarball given a URL, the expected tarball name,
Expand Down Expand Up @@ -108,9 +107,6 @@ install_scala() {
install_scala
install_mvn

# Set any `mvn` options if not already present
export MAVEN_OPTS=${MAVEN_OPTS:-"$_COMPILE_JVM_OPTS"}

cd "${_CALLING_DIR}"
echo "Using \`mvn\` from path: $MVN_BIN" 1>&2
${MVN_BIN} "$@"
${MVN_BIN} $MAVEN_CLI_OPTS "$@"

0 comments on commit 309e45b

Please sign in to comment.