Unverified Commit a0866f65 authored by Benedikt Ritter's avatar Benedikt Ritter
Browse files

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.
parent 91fc68a2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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