maven: run dependency FOD mvn commands in batch mode

Otherwise `nix log /nix/store/...` for the dependency FOD gets
unreadable due to progress logs being printed to stdout.
This commit is contained in:
Benedikt Ritter
2026-03-18 14:15:02 +01:00
parent 91fc68a29d
commit a0866f654b
@@ -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