Note because I needed it I'm doing it on CentOS 7.5 with Java 1.7 or higher installed
Download the Maven binary file
# cd /opt/
# curl -LkvOf http://ftp.jaist.ac.jp/pub/apache/maven/maven-3/3.6.0/binaries/apache-maven-3.6.0-bin.tar.gz
Extract the file
# tar xzvf apache-maven-3.6.0-bin.tar.gz
Pass through
# vi /etc/profile
(abridgement)
export PATH=/opt/apache-maven-3.6.0/bin:$PATH
```
Execute the source command
# source /etc/profile
Execute the following command, and if the version is displayed, it's OK
# mvn -v
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-25T03:41:47+09:00)
Maven home: /opt/apache-maven-3.6.0
Java version: 1.8.0_202, vendor: Oracle Corporation, runtime: /usr/java/jdk1.8.0_202-amd64/jre
Default locale: ja_JP, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-957.1.3.el7.x86_64", arch: "amd64", family: "unix"
Recommended Posts