How to install maven 3 in ubuntu 11.10

To install maven 3 you need to remove first, if you have, the previous versions installed (maven2). And execute the ff command in the terminal:
sudo apt-get remove maven2
sudo add-apt-repository ppa:natecarlson/maven3
sudo apt-get install maven3
You should also configure maven environment setting as follows:
//execute 
sudo nano /etc/environment

M3_HOME="/home/edward/java/apache/maven-3.0.4"
MAVEN_HOME="/home/edward/java/apache/maven-3.0.4"
M3="home/edward/java/apache/maven-3.0.4"    
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/edward/java/apache/maven-3.0.4"
How to install maven 3 in ubuntu 11.10 How to install maven 3 in ubuntu 11.10 Reviewed by Edward Legaspi on Friday, May 18, 2012 Rating: 5

2 comments:

Anonymous said...

Thanx.. It was useful.

Anonymous said...

Thanx.. It was useful.

Powered by Blogger.