From bbe8e81cc02e2e200079a6582bf4f19abe71cb80 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Mon, 22 Oct 2018 00:57:54 +0000 Subject: [PATCH] tools: Added '-B' flag for mvn current version cmd (#2910) maven command for finding current version might need to download packages and without batch mode it will end in variable. Added '-B' to enable batch mode. --- tools/build/setnextversion.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build/setnextversion.sh b/tools/build/setnextversion.sh index 3b31ea915e78..8d8037c5e5b7 100755 --- a/tools/build/setnextversion.sh +++ b/tools/build/setnextversion.sh @@ -124,7 +124,7 @@ echo "checking out correct branch" git checkout $branch echo "determining current POM version" -export currentversion=`mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -v '\['` +export currentversion=`mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version -B | grep -v '\['` echo "found $currentversion" echo "setting new version numbers"