Skip to content

1. Search Maven package – apt-cache search

Search the Maven package in Ubuntu with apt command – apt-cache search maven

mkyong@mkyong-desktop:~$ apt-cache search maven
....
maven-ant-helper - helper scripts for building Maven components with ant
maven2 - Java software project management and comprehension tool

2. Install it – apt-get install

Install Maven with command – sudo apt-get install maven2. Apt will configured Maven for you automatically.

mkyong@mkyong-desktop:~$ sudo apt-get install maven2
2 upgraded, 87 newly installed, 0 to remove and 263 not upgraded.
Need to get 97.2MB of archives.
After this operation, 271MB of additional disk space will be used.
Do you want to continue [Y/n]? y
....download many packages, patient

3. Verification

Type “mvn -version” to verify your installation.

mkyong@mkyong-desktop:~$ mvn -version
Maven version: 2.0.9
Java version: 1.6.0_0
OS name: "linux" version: "2.6.28-11-generic" arch: "i386" Family: "unix"
mkyong@mkyong-desktop:~$

4. Done

If you see the above message, the Apache Maven is installed successfully.

Where Maven installed?
The Apt-get installation will install all the Maven required files in the following folder structure

/usr/bin/mvn
/usr/share/maven2/
/etc/maven2

P.S The Maven configuration is store in /etc/maven2

List of Articles
번호 제목 글쓴이 날짜sort 조회 수
47 데몬 및 프로세스 관리 ADMINPLAY 2009-05-11 17326
46 시스템 백업과 응급 복구 ADMINPLAY 2009-05-11 60928
45 Ascii Art관련 사이트 링크 ADMINPLAY 2009-05-11 17290
44 퍼미션 설정 ADMINPLAY 2009-05-11 17609
43 Linux 파일 오픈 갯수 확인 ADMINPLAY 2009-05-10 23422
42 Centos5 버전에서 메모리 인식 file ADMINPLAY 2009-05-10 21100
41 MRTG 로그 데이터 시간확인하기 ADMINPLAY 2009-05-08 22180
40 리눅스 java tocmat 설치 ADMINPLAY 2009-05-07 18984
39 ssh, ftp 접근 딜레이 현상 발생시 조치방법 ADMINPLAY 2009-04-27 20094
38 관리, 개발자를 위한 vi 환경 설정 ( vim-enhanced) ADMINPLAY 2009-04-27 19000
37 time.bora.net 시간 동기화후 dovecot 데몬이 죽는 현상 해결 ADMINPLAY 2009-04-27 23932
36 리눅스 페도라 인터넷잡는것좀 알켜주세요^^; [1] 시풍 2009-04-07 20706
35 .vimrc 설정 설정, 색상 (VI 설정 색상) ADMINPLAY 2009-03-21 26238
34 사이트 이전시 - rsync ADMINPLAY 2009-03-17 17418
33 dumpe2fs 파일 시스템의 슈퍼 블럭과 블럭 그룹 정보를 출력 ADMINPLAY 2009-03-17 20736
32 rm -rf / ==> 그 결과는...ㄷㄷ;; ADMINPLAY 2009-03-17 20146
31 Cent5 ffmpeg 설치 ADMINPLAY 2009-03-17 18040
30 리눅스 TIP ADMINPLAY 2009-03-09 25554
29 특정 디랙토리 인증걸기 htpasswd, htaccess ADMINPLAY 2009-03-04 22030
28 netstat 의 Send-Q, Recv-Q의 의미 ADMINPLAY 2009-02-09 25021

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234