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 top 화면 내용중 load average와 PRI : priority(우선순위... ADMINPLAY 2013-12-24 5138
46 ModSecurity 로그파일의 사이즈가 너무 큰데 이를 날짜나 ... file ADMINPLAY 2013-12-29 6536
45 ll 명령시 날짜 전체가 보이도록 하기 ADMINPLAY 2014-01-02 5431
44 ZFS 파일에 ACL 설정 ADMINPLAY 2014-02-03 5271
43 ctime, mtime, atime 다른 점 설명 ADMINPLAY 2014-02-07 5953
42 VirtualBox 4.3 Released – Install on RHEL/CentOS/Fedor... ADMINPLAY 2014-02-14 7272
41 CentOS 6.5 에서 VirtualBox 4.3 설치후 VirtualBox 구동... ADMINPLAY 2014-02-14 7795
40 Strace - 시스템콜과 신호 추적 file ADMINPLAY 2014-02-25 6047
39 linux daemon (리눅스 데몬 설명) ADMINPLAY 2014-02-26 648124
38 디스크 UUID 변경후 하드부팅정보 수정하기 ADMINPLAY 2014-02-26 21020
37 Linux 마우스 휠 방향 바꾸기 (mac 처럼 마우스 휠 바꾸기) ADMINPLAY 2014-02-27 11848
36 vimrc 설정 file ADMINPLAY 2014-03-01 6092
35 telnet 과 ssh 의 차이점 ADMINPLAY 2014-03-01 6462
34 OS X 10.9 매버릭스의 기본 파일공유 프로토콜은 AFP가 아... ADMINPLAY 2014-03-04 11036
33 OS X 매버릭스가 NAS, 윈도우 PC 등 SMB 장비에 연결하지 ... ADMINPLAY 2014-03-04 6743
32 CentOS 6.X GUI 로그인 화면에서 로그인 했던 계정 리스트... ADMINPLAY 2014-03-05 16658
31 SVN 클라이언트 명령어 ADMINPLAY 2014-03-18 7438
30 python mysql connector 설치 및 SQLAachemy 연동 ADMINPLAY 2014-03-27 7882
29 python과 mysql 연동시 libmysqlclient_r.so.* 에러가 날 ... ADMINPLAY 2014-03-27 5527
28 CentOS 6.5 + Python2.7 + MySQL_Python-1.2.3 ADMINPLAY 2014-03-28 7952

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234