Linux Centos7 64-bit installation Maven Details

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/zhangyong01245/article/details/89501456

This article is only for bloggers learning record, and share any similarity is purely coincidental, thank you!

Download Maven

  1. You need to install the JDK before installing Maven: can look at my other blog post: https://blog.csdn.net/zhangyong01245/article/details/88425472;
  2. Download Maven, the official website: http://maven.apache.org/download.cgi below, click to download

3, the download is complete: apache-maven-3.6.1-bin.tar

Upload and install

1. Use FTP to upload to the Linux server: bloggers are using the MobaXterm, personal preferences.
2. Upload the file location to see personal thoughts, this location: / Soft / Maven-the Apache-3.6.1-bin.tar.gz
3. Unzip the file command: tar -zxvf apache-maven-3.6.1 -bin.tar.gz
4. rename the file (step may be omitted, and easy to separate from other items apache): mv apache-maven-3.6.1 maven-3.6.1

And verify the configuration environment variable

1. In the / etc / profile add the following lines (in line with their own Maven extraction path):

MAVEN_HOME=/soft/maven-3.6.1/bin
export MAVEN_HOME
export PATH=${PATH}:${MAVEN_HOME}/bin

Here Insert Picture Description
2. Run the environmental variables to take effect: source / etc / profile

Verify successful installation

1, Run: mvn -v
2, shows a successful installation is expressed as follows
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/zhangyong01245/article/details/89501456