[all os] Updated maven from 3.6.3 to 3.8.1 (#3247)

This commit is contained in:
Ismaël Mejía
2021-04-26 13:48:47 +02:00
committed by GitHub
parent 1cfd480416
commit 08dd8f3a6a
2 changed files with 3 additions and 3 deletions

View File

@@ -62,10 +62,10 @@ apt-fast install -y --no-install-recommends ant ant-optional
echo "ANT_HOME=/usr/share/ant" | tee -a /etc/environment
# Install Maven
curl -sL https://www-eu.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.zip -o maven.zip
curl -sL https://www-eu.apache.org/dist/maven/maven-3/3.8.1/binaries/apache-maven-3.8.1-bin.zip -o maven.zip
unzip -qq -d /usr/share maven.zip
rm maven.zip
ln -s /usr/share/apache-maven-3.6.3/bin/mvn /usr/bin/mvn
ln -s /usr/share/apache-maven-3.8.1/bin/mvn /usr/bin/mvn
# Install Gradle
# This script downloads the latest HTML list of releases at https://gradle.org/releases/.

View File

@@ -105,7 +105,7 @@ foreach ($jdkVersion in $jdkVersions) {
# Install Java tools
# Force chocolatey to ignore dependencies on Ant and Maven or else they will download the Oracle JDK
Choco-Install -PackageName ant -ArgumentList "-i"
Choco-Install -PackageName maven -ArgumentList "-i", "--version=3.6.3"
Choco-Install -PackageName maven -ArgumentList "-i", "--version=3.8.1"
Choco-Install -PackageName gradle
# Move maven variables to Machine. They may not be in the environment for this script so we need to read them from the registry.