3 08 2019
Centos 7 Maven Install
CentOS 7 maven 설치
1. 다운로드
$ cd 다운로드 위치
$ wget http://www.gtlib.gatech.edu/pub/apache/maven/maven-3/3.6.1/binaries/apache-maven-3.6.1-bin.tar.gz
$ sudo tar xzf apache-maven-3.6.1-bin.tar.gz
2. 전역 환경 설정
$ sudo vi /etc/profile.d/maven.sh
export M2_HOME=/xxxx/apache-maven-3.6.1
export PATH=${M2_HOME}/bin:${PATH}
$ source /etc/profile.d/maven.sh
3. 버젼 확인
$ mvn -version
Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-05T04:00:29+09:00)
Maven home: /xxxx/apache-maven-3.6.1
Java version: 1.8.0_212, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64/jre
Default locale: ko_KR, platform encoding: UTF-8
OS name: “linux”, version: “3.10.0-862.el7.x86_64”, arch: “amd64”, family: “unix”
Comments are currently closed.