Fix build failure of hbase-1.5.0 on Ubuntu.
@@ -36,12 +36,15 @@ if [ $HOSTTYPE = "aarch64" ] ; then
sed -i '/<version>1.5.0-alpha.6<\/version>/,+1d' ./pom.xml
sed -i '/<artifactId>asciidoctorj-pdf<\/artifactId>/a\<version>1.5.0-alpha.6<\/version>\n</dependency>\n<dependency>\n<groupId>org.jruby<\/groupId>\n<artifactId>jruby-complete<\/artifactId>\n<version>9.1.8.0<\/version>\n<\/dependency>' ./pom.xml
fi
-mvn -DskipTests -Dslf4j.version=1.7.25 \
- -Dhadoop-two.version=$HADOOP_VERSION \
- -Dzookeeper.version=$ZOOKEEPER_VERSION \
- -Dcheckstyle.skip=true \
- ${MAVEN_ADDITIONAL} \
- install site assembly:single "$@"
+
+MVN_ARGS="-DskipTests "
+MVN_ARGS+="-Dslf4j.version=1.7.25 "
+MVN_ARGS+="-Dhadoop-two.version=${HADOOP_VERSION} "
+MVN_ARGS+="-Dzookeeper.version=${ZOOKEEPER_VERSION} "
+MVN_ARGS+="-Dcheckstyle.skip=true "
+mvn ${MVN_ARGS} ${MAVEN_ADDITIONAL} install "$@"
+mvn ${MVN_ARGS} ${MAVEN_ADDITIONAL} site "$@"
+mvn ${MVN_ARGS} ${MAVEN_ADDITIONAL} package assembly:single "$@"
rm -rf build
mkdir build
