diff --git a/build/mvnd b/build/mvnd index 8d4d41b0fb4..dc3057da582 100755 --- a/build/mvnd +++ b/build/mvnd @@ -95,7 +95,7 @@ function get_os_arch() { # install mvnd under the build/ folder if needed. function install_mvnd() { local MVND_VERSION=$(grep "" "${_DIR}/../pom.xml" | head -n1 | awk -F '[<>]' '{print $3}') - local MVND_MVN_SHORT_VERSION=$(grep "" "${_DIR}/../pom.xml" | head -n1 | awk -F '[<>]' '{print $3}') + local MVND_MVN_SHORT_VERSION=$(echo "$MVN_VERSION" | awk -F . '{print $1$2}') local MVN_VERSION=$(grep "" "${_DIR}/../pom.xml" | head -n1 | awk -F '[<>]' '{print $3}') MVND_BIN="$(command -v mvnd)" if [ "$MVND_BIN" ]; then