chihsuan commented on code in PR #12086:
URL: https://github.com/apache/ozone/pull/12086#discussion_r4641127538
##########
hadoop-ozone/dev-support/checks/_lib.sh:
##########
@@ -99,5 +99,13 @@ create_aws_dir() {
get_version() {
local dep="$1"
shift
- MVNW_VERBOSE=false ./mvnw --non-recursive --quiet help:evaluate
-Dexpression="${dep}.version" -DforceStdout -Dscan=false "$@"
+
+ local tempfile=$(mktemp)
+
+ # output version/transfer etc. to stderr first
+ ./mvnw --batch-mode --non-recursive --show-version \
+ help:evaluate -Dexpression="${dep}.version" -Doutput="${tempfile}" \
+ -Dscan=false "$@" >&2 \
+ && cat "${tempfile}" \
+ && rm -f "${tempfile}"
Review Comment:
The previous version only showed the Maven output in CI. Is it intended for
local runs too now? Either way works since it's minor, just checking. 🙂
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]