How to Install Maven 3 in Ubuntu

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"

2 Comments

Post a Comment

Post a Comment

Previous Post Next Post
NERV Open Source

Building production Spring Boot systems?

Explore NERV — open-source Java libraries for audit trails, persistence, exception handling, and reliable event-driven architecture.

Explore NERV on GitHub →