diff --git a/build/mvn b/build/mvn index 53a77f6e81f2b..672599a280310 100755 --- a/build/mvn +++ b/build/mvn @@ -136,7 +136,9 @@ install_scala() { ZINC_PORT=${ZINC_PORT:-"3030"} # Install the proper version of Scala, Zinc and Maven for the build -install_zinc +if [ "$(uname -m)" != 'aarch64' ]; then + install_zinc +fi install_scala install_mvn @@ -145,7 +147,7 @@ cd "${_CALLING_DIR}" # Now that zinc is ensured to be installed, check its status and, if its # not running or just installed, start it -if [ -n "${ZINC_INSTALL_FLAG}" -o -z "`"${ZINC_BIN}" -status -port ${ZINC_PORT}`" ]; then +if [ "$(uname -m)" != 'aarch64' ] && [ -n "${ZINC_INSTALL_FLAG}" -o -z "`"${ZINC_BIN}" -status -port ${ZINC_PORT}`" ]; then export ZINC_OPTS=${ZINC_OPTS:-"$_COMPILE_JVM_OPTS"} "${ZINC_BIN}" -shutdown -port ${ZINC_PORT} "${ZINC_BIN}" -start -port ${ZINC_PORT} \ @@ -165,6 +167,8 @@ echo "Using \`mvn\` from path: $MVN_BIN" 1>&2 MVN_RETCODE=$? # Try to shut down zinc explicitly if the server is still running. -"${ZINC_BIN}" -shutdown -port ${ZINC_PORT} +if [ "$(uname -m)" != 'aarch64' ]; then + "${ZINC_BIN}" -shutdown -port ${ZINC_PORT} +fi exit $MVN_RETCODE