Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 at 23:01

2 Answers 2

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
  1. cd /tmp
  2. wget http://www.carfab.com/apachesoftware/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz
  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 http://maven.apache.org/download.cgi

share|improve this answer

Your Answer

 
discard

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.