Skip to content

Commit d0fbd00

Browse files
shwstppryadvr
authored andcommitted
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.
1 parent f5d5242 commit d0fbd00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/build/setnextversion.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ echo "checking out correct branch"
124124
git checkout $branch
125125

126126
echo "determining current POM version"
127-
export currentversion=`mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -v '\['`
127+
export currentversion=`mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version -B | grep -v '\['`
128128
echo "found $currentversion"
129129

130130
echo "setting new version numbers"

0 commit comments

Comments
 (0)