Skip to content

Commit 7992a69

Browse files
committed
Prevent failure if cache is empty (#809)
1 parent 965750b commit 7992a69

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/java-api-bindings/scripts/install_dependencies_and_build.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ fi
127127
# Install jdk and maven
128128
mkdir -p ${BUILD_HOME}
129129
cd ${BUILD_HOME}
130-
apt remove maven -y && apt autoremove -y
131-
apt update && apt install -y openjdk-11-jdk
130+
apt update && apt remove maven -y && apt autoremove -y && apt install -y openjdk-11-jdk
132131
wget https://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz
133132
tar zxvf apache-maven-${MAVEN_VERSION}-bin.tar.gz
134133
export PATH=$PATH:$PWD/apache-maven-${MAVEN_VERSION}/bin/

0 commit comments

Comments
 (0)