diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh index 50a70809848..3fe9fd9f0a3 100755 --- a/dev-support/hbase-personality.sh +++ b/dev-support/hbase-personality.sh @@ -464,13 +464,17 @@ function shadedjars_rebuild start_clock + local -a maven_args=('clean' 'verify' '-fae' '--batch-mode' + '-pl' 'hbase-shaded/hbase-shaded-check-invariants' '-am' + '-Dtest=NoUnitTests' '-DHBasePatchProcess' '-Prelease' + '-Dmaven.javadoc.skip=true' '-Dcheckstyle.skip=true' '-Dspotbugs.skip=true') + if [[ -n "${HADOOP_PROFILE}" ]]; then + maven_args+=("-Dhadoop.profile=${HADOOP_PROFILE}") + fi + # disabled because "maven_executor" needs to return both command and args # shellcheck disable=2046 - echo_and_redirect "${logfile}" \ - $(maven_executor) clean verify -fae --batch-mode \ - -pl hbase-shaded/hbase-shaded-check-invariants -am \ - -Dtest=NoUnitTests -DHBasePatchProcess -Prelease \ - -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true + echo_and_redirect "${logfile}" $(maven_executor) "${maven_args[@]}" count=$(${GREP} -c '\[ERROR\]' "${logfile}") if [[ ${count} -gt 0 ]]; then