Skip to content

Commit

Permalink
Download Maven from apache.org archives (#10225)
Browse files Browse the repository at this point in the history
Fixes #10224 

Replace broken install using apt by downloading Maven from apache.org.

Signed-off-by: Gera Shegalov <[email protected]>
  • Loading branch information
gerashegalov authored Jan 19, 2024
1 parent 8e8062d commit b949674
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions jenkins/databricks/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright (c) 2020-2023, NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2020-2024, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -52,7 +52,13 @@ declare -A artifacts
initialize()
{
# install rsync to be used for copying onto the databricks nodes
sudo apt install -y maven rsync
sudo apt install -y rsync

if [[ ! -d $HOME/apache-maven-3.6.3 ]]; then
wget https://archive.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz -P /tmp
tar xf /tmp/apache-maven-3.6.3-bin.tar.gz -C $HOME
sudo ln -s $HOME/apache-maven-3.6.3/bin/mvn /usr/local/bin/mvn
fi

# Archive file location of the plugin repository
SPARKSRCTGZ=${SPARKSRCTGZ:-''}
Expand Down

0 comments on commit b949674

Please sign in to comment.