From 82feb82eabfdc32cfca925c7d2e5e7070ecfe784 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 25 Sep 2013 18:22:42 +0200 Subject: [PATCH] support maven3 which changed output... --- maven_post_build_debian_wrapper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maven_post_build_debian_wrapper.sh b/maven_post_build_debian_wrapper.sh index c367638..b46067c 100755 --- a/maven_post_build_debian_wrapper.sh +++ b/maven_post_build_debian_wrapper.sh @@ -20,7 +20,7 @@ function cleanup { function validateSettings { REPO=pb-${SUITE} - VERSION=$(mvn -B -N help:evaluate -Dexpression=project.version 2>/dev/null| grep -v "^\[") + VERSION=$(mvn -B -N help:evaluate -Dexpression=project.version 2>/dev/null| grep -v "^\[" | grep -v "^D" ) if [[ -z "${VERSION}" ]]; then echo "ERROR: Cannot get version from maven using 'mvn -B -N help:evaluate -Dexpression=project.version'" mvn -B -N help:evaluate -Dexpression=project.version -- 2.39.5