Last active
August 3, 2022 17:04
-
-
Save epomatti/039d681555ee3a11fd90dab99eb1b1cb to your computer and use it in GitHub Desktop.
install updated maven ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
maven_version='3.8.6' | |
wget "https://dlcdn.apache.org/maven/maven-3/$maven_version/binaries/apache-maven-$maven_version-bin.tar.gz" | |
tar -xvf apache-maven-*-bin.tar.gz | |
sudo mv "apache-maven-$maven_version" /usr/share/maven | |
echo 'export PATH="$PATH:/usr/share/maven"' >> ~/.bashrc | |
echo 'export PATH="$PATH:/usr/share/maven/bin"' >> ~/.bashrc | |
source ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment