Installation maven under a networked server case
1, install wget command
If you need to use wget command directly downloaded via the network maven installation package, in order to install wget linux system.
yum -y install wget conventional mounting operation command wget
2, downloads the installation package maven
General mode of operation, the address request via software mirroring wget command. Specific open source reference URL at home and abroad , here I am with open source software Alibaba website, wget https://mirrors.aliyun.com/apache/maven/maven-3/3.6.2/binaries/apache-maven-3.6.2 -bin.tar.gz, download speed is quite fast.
3, decompression maven
tar -zvxf apache-maven-3.6.2-bin.tar.gz
4, configure the environment variables maven
vi / etc / profile
Adding Environment Variables
export MAVEN_HOME=/var/local/apache-maven-3.6.2
export MAVEN_HOME
export PATH=$PATH:$MAVEN_HOME/bin
Remember to use edit source / etc / profile command changes to take effect later.
5, validation results
In any path verification performed mvn -version command is valid.
Normal results are as follows, and can see the current maven jdk version.