From 7992a69a1e01fdcce7797d754edcc411935ba0da Mon Sep 17 00:00:00 2001 From: Misha Chornyi <99709299+mc-nv@users.noreply.github.com> Date: Mon, 18 Nov 2024 10:08:49 -0800 Subject: [PATCH] Prevent failure if cache is empty (#809) --- .../scripts/install_dependencies_and_build.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/java-api-bindings/scripts/install_dependencies_and_build.sh b/src/java-api-bindings/scripts/install_dependencies_and_build.sh index 09fc04814..01ce18464 100755 --- a/src/java-api-bindings/scripts/install_dependencies_and_build.sh +++ b/src/java-api-bindings/scripts/install_dependencies_and_build.sh @@ -127,8 +127,7 @@ fi # Install jdk and maven mkdir -p ${BUILD_HOME} cd ${BUILD_HOME} -apt remove maven -y && apt autoremove -y -apt update && apt install -y openjdk-11-jdk +apt update && apt remove maven -y && apt autoremove -y && apt install -y openjdk-11-jdk wget https://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz tar zxvf apache-maven-${MAVEN_VERSION}-bin.tar.gz export PATH=$PATH:$PWD/apache-maven-${MAVEN_VERSION}/bin/