Reputation: 109
I'm trying to install maven2 on Ubuntu using the command:
sudo apt-get install maven
But it install maven3 instead of maven2. I want a project from maven and the projects are managed by Maven2 build system. How to install from command line?
Upvotes: 0
Views: 8076
Reputation: 382
sudo apt-get install maven
This command install latest version of maven.
sudo apt-get purge maven maven2 maven3
sudo add-apt-repository ppa:andrei-pozolotin/maven2
sudo apt-get update
sudo apt-get install maven2
Try This command, you can get maven2 version.
OR
You can download it from official site:
https://maven.apache.org/download.cgi
Upvotes: 6
Reputation: 6577
Download it from the official site:
$ wget https://archive.apache.org/dist/maven/maven-2/2.2.1/binaries/apache-maven-2.2.1-bin.zip
$ unzip apache-maven-2.2.1-bin.zip
Upvotes: 2