maven: run dependency FOD mvn commands in batch mode (#501020)

This commit is contained in:
Arne Keller
2026-03-18 15:26:19 +00:00
committed by GitHub
@@ -59,13 +59,13 @@ let
buildPhase = ''
runHook preBuild
MAVEN_EXTRA_ARGS=""
MAVEN_EXTRA_ARGS="-B"
# handle proxy
if [[ -n "''${HTTP_PROXY-}" ]] || [[ -n "''${HTTPS_PROXY-}" ]] || [[ -n "''${NO_PROXY-}" ]];then
mvnSettingsFile="$(mktemp -d)/settings.xml"
${writeProxySettings} $mvnSettingsFile
MAVEN_EXTRA_ARGS="-s=$mvnSettingsFile"
MAVEN_EXTRA_ARGS="$MAVEN_EXTRA_ARGS -s=$mvnSettingsFile"
fi
# handle cacert by populating a trust store on the fly