티스토리 뷰

java

linux에 maven 설치 하기

모카데브 2019. 5. 26. 15:59

1. maven 다운로드

wget http://apache.mirror.cdnetworks.com/maven/maven-3/3.6.1/binaries/apache-maven-3.6.1-bin.tar.gz
tar -zxvf apache-maven-3.6.1-bin.tar.gz

 

2. .zshrc 설정

vim ~/.zshrc

MAVEN_HOME=/home/ec2-user/util/apache-maven-3.6.1 
PATH=$PATH:$MAVEN_HOME/bin 
export MAVEN_HOME 

 

3. 설치 확인

mvn -version 
Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-05T04:00:29+09:00) 
Maven home: /home/ec2-user/util/apache-maven-3.6.1 
Java version: 1.8.0_131, vendor: Oracle Corporation, runtime: /opt/jdk1.8.0_131/jre 
Default locale: en_US, platform encoding: UTF-8 
OS name: "linux", version: "4.14.114-83.126.amzn1.x86_64", arch: "amd64", family: "unix"

 

 

반응형
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
글 보관함