DBILITY

maven binary 설치 본문

os/linux

maven binary 설치

DBILITY 2018. 4. 11. 11:25
반응형

maven binary 설치

 

[root@big-master src]# wget http://apache.tt.co.kr/maven/maven-3/3.5.3/binaries/apache-maven-3.5.3-bin.tar.gz

[root@big-master src]# tar -zxvpf apache-maven-3.5.3-bin.tar.gz

[root@big-master src]# cp -rf apache-maven-3.5.3 /bigdata/

[root@big-master src]# ln -s /bigdata/apache-maven-3.5.3 /maven

[root@big-master src]# vi /etc/profile
export MAVEN_HOME=/maven
export PATH=$PATH:/bigdata/apache-maven-3.5.3/bin

[root@big-master src]# source /etc/profile

[root@big-master src]# mvn -v
Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-25T04:49:05+09:00)
Maven home: /bigdata/apache-maven-3.5.3
Java version: 1.8.0_161, vendor: Oracle Corporation
Java home: /bigdata/jdk1.8.0_161/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-229.el7.x86_64", arch: "amd64", family: "unix"

conf/settings.xml에 localRepository 설정

그렇지 않을 경우 계정아래 .m2가 됨 

<localRepository>/maven/repository</localRepository>

 

반응형

'os > linux' 카테고리의 다른 글

file content merge & replace  (0) 2018.04.12
vim replace  (0) 2018.04.11
Centos Google Protobuf 2.5.0 install( 설치 )  (0) 2018.04.11
Centos7 minimal install 후 설치할 것들  (0) 2016.09.08
wget으로 jdk 다운로드  (0) 2016.09.08
Comments