Maven installation in Ubuntu 20

Distrib:
http://maven.apache.org


Maven 3 Installation:


$ mkdir -p ~/tmp && cd ~/tmp

$ wget https://archive.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz


$ tar -xvzpf apache-maven-3.6.3-bin.tar.gz
$ sudo mv apache-maven-3.6.3/ /opt/
$ sudo ln -s /opt/apache-maven-3.6.3/ /opt/maven


$ sudo vi /etc/profile.d/maven.sh


#### MAVEN 3.6.3 #######################

export MAVEN_HOME=/opt/maven
export PATH=$PATH:$MAVEN_HOME/bin

#### MAVEN 3.6.3 #######################


$ sudo chmod 755 /etc/profile.d/maven.sh
$ source /etc/profile.d/maven.sh


Let try to check result:


$ mvn -version
Apache Maven 3.6.3


Some maven commands

$ mvn help:effective-settings

$ mvn help:effective-pom