jboss source build를 위하여 ubuntu에 maven을 설치해 보자
1) maven2 설치 하기
설치하면 현재(2012.11)기준 Maven version 2.2.1 이다. 그러나 최신 버전은 3.0.4 이다
- wget http://apache.mirror.cdnetworks.com/maven/maven-3/3.0.4/binaries/apache-maven-3.0.4-bin.zip
- 압축을 풀고 환경변수 : export M2_HOME=<install dir path> 그리고 export M2=$M2_HOME/bin
- PATH 환경변수 : export PATH=$M2:$PATH
- 버전확인 : mvn -version
dev@ip-10-146-81-140:~/deploy$ wget http://apache.mirror.cdnetworks.com/maven/maven-3/3.0.4/binaries/apache-maven-3.0.4-bin.zip
--2012-11-23 00:55:59-- http://apache.mirror.cdnetworks.com/maven/maven-3/3.0.4/binaries/apache-maven-3.0.4-bin.zip
Resolving apache.mirror.cdnetworks.com (apache.mirror.cdnetworks.com)... 61.110.198.174
Connecting to apache.mirror.cdnetworks.com (apache.mirror.cdnetworks.com)|61.110.198.174|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4889768 (4.7M) [application/zip]
Saving to: `apache-maven-3.0.4-bin.zip'
100%[============================================================================>] 4,889,768 1.46M/s in 3.2s
2012-11-23 00:56:02 (1.46 MB/s) - `apache-maven-3.0.4-bin.zip' saved [4889768/4889768]
dev@ip-10-146-81-140:~/deploy$ ll
total 4784
drwxrwxr-x 2 dev dev 4096 Nov 23 00:55 ./
drwxr-xr-x 7 dev dev 4096 Nov 23 00:53 ../
-rw-rw-r-- 1 dev dev 4889768 Sep 5 07:01 apache-maven-3.0.4-bin.zip
dev@ip-10-146-81-140:~/deploy$ unzip apache-maven-3.0.4-bin.zip
Archive: apache-maven-3.0.4-bin.zip
creating: apache-maven-3.0.4/
creating: apache-maven-3.0.4/boot/
inflating: apache-maven-3.0.4/boot/plexus-classworlds-2.4.jar
-- 중략 --
creating: apache-maven-3.0.4/lib/ext/
inflating: apache-maven-3.0.4/lib/ext/README.txt
dev@ip-10-146-81-140:~/deploy$vi .bashrc
<.bashrc 삽입 내역>
export M2_HOME=/home/dev/deploy/apache-maven-3.0.4
export M2=$M2_HOME/bin
export PATH=$M2:$PATH
dev@ip-10-146-81-140:~$ . .bashrc
dev@ip-10-146-81-140:~$ mvn -version
Apache Maven 3.0.4 (r1232337; 2012-01-17 08:44:56+0000)
Maven home: /home/dev/deploy/apache-maven-3.0.4
Java version: 1.7.0_09, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.2.0-31-virtual", arch: "amd64", family: "unix"
'Middleware, Cloud > Linux' 카테고리의 다른 글
[Linux] Bash Shell for Log Backup (0) | 2013.02.20 |
---|---|
[Linux] CPU 갯수 알아내기 (0) | 2013.02.07 |
[Linux] 현재 공동작업하는 사람이 무얼하는지 알고 싶을 경우 (0) | 2013.01.11 |
[Linux] Free Memory 사이즈 알기 (0) | 2012.12.07 |
[Linux] vsftpd 설치하기 (0) | 2012.11.21 |