Enable --batch-mode and set transfer logger to WARN to prevent Maven
from printing the download/upload progress indicators in console logs.
Issue: https://trello.com/c/uSwEfMmP/542-make-build-rpm-stream-console-output-less-verbose
Change-Id: I00d323192a9726e5b6f7b92ab80c424bfe3ab81f
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
params+=("-Dclassifier=\"$classifier\"")
fi
+ # Disable the Maven transfer output.
+ params+=("--batch-mode")
+ params+=("-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn")
+
echo "Deploying $file to $nexus_url..."
# make sure the script bombs if we fail an upload