Skip to content

Commit 98057cc

Browse files
committed
release-version: fix two-pass property extraction
It should only use -U (which is slower) after the first attempt fails. The point of the initial attempt is to avoid using -U.
1 parent 6448eed commit 98057cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

release-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Options include:
113113
# -- Extract project details --
114114

115115
echoArg='${project.version}:${license.licenseName}:${project.parent.groupId}:${project.parent.artifactId}:${project.parent.version}'
116-
projectDetails=$(mvn -N -U -Dexec.executable=echo -Dexec.args="$echoArg" exec:exec -q)
116+
projectDetails=$(mvn -N -Dexec.executable=echo -Dexec.args="$echoArg" exec:exec -q)
117117
test $? -eq 0 || projectDetails=$(mvn -U -N -Dexec.executable=echo -Dexec.args="$echoArg" exec:exec -q)
118118
test $? -eq 0 || die "Could not extract version from pom.xml. Error follows:\n$projectDetails"
119119
currentVersion=${projectDetails%%:*}

0 commit comments

Comments
 (0)