diff --git a/bin/exec-env b/bin/exec-env new file mode 100755 index 0000000..d091971 --- /dev/null +++ b/bin/exec-env @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +# if asdf provides java, then let's use that rather the system one (if at all avail) +if asdf current java > /dev/null 2>&1 +then + export JAVA_HOME=$(asdf where java) +fi diff --git a/bin/install b/bin/install index 3174e68..29fd80c 100755 --- a/bin/install +++ b/bin/install @@ -20,7 +20,7 @@ get_maven() { local destdir=$2 local major=$(echo $version | cut -d '.' -f 1) - local base="https://archive.apache.org/dist/maven" + local base="${ASDF_MAVEN_MIRROR:=https://archive.apache.org/dist/maven}" local url="$base/maven-$major/$version/binaries/apache-maven-$version-bin.tar.gz" if [[ "$version" == *SNAPSHOT ]]; then