Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The way my Maven packages are configured, something breaks when I have the latest version installed (I think 3.4). On another computer, where I have 3.0.4, the build runs fine. I am looking for a way to install a previous version using apt-get. I followed these instructions and they completed fine but when I ran mvm -v, I got the following error, so something must have been wrong with the tar ball:

[ERROR] Unknown lifecycle phase "–v"

share|improve this question
Have you considered trying to fix the build in the current version of Maven? Also, the version of maven in the repos is 3.0.5. – saiarcot895 May 14 '14 at 23:01
  1. cd /tmp
  2. wget
  3. gunzip apache-maven-3.0.5-bin.tar.gz
  4. tar -xvf apache-maven-3.0.5-bin.tar.gz
  5. sudo mv apache-maven-3.0.5 /opt
  6. cd /opt
  7. sudo chown -R root apache-maven-3.0.5
  8. sudo chgrp -R root apache-maven-3.0.5
  9. add /opt/apache-maven-3.0.5 to your PATH

See also

share|improve this answer
update: link does not work. Use this one instead:… – Marc Guiselin Jul 13 at 6:30
and remove the .gz in the 4th step – Marc Guiselin Jul 13 at 6:33
add /bin to the end of that path in step 9 – Marc Guiselin Jul 13 at 6:56

You can Install maven 3.0.4 with ppa:rockclimb/netbeans repository.

sudo add-apt-repository ppa:rockclimb/netbeans

sudo apt-get update

sudo apt-get install maven
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.