This is an automated email from the ASF dual-hosted git repository.

rafael pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack.git

commit d0fbd00e9b7841b7861bac9e4df74bde6faa0cdd
Author: Abhishek <[email protected]>
AuthorDate: Mon Oct 22 22:04:42 2018 +0530

    tools: Added '-B' flag for mvn current version cmd (#2910) (#2914)
    
    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 3b31ea9..8d8037c 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"

Reply via email to