sudo ln -s /usr/share/maven3/bin/mvn /usr/bin/mvnĬaution 1: command "sudo apt-add-repository ppa:natecarlson/maven3" did not work on my Ubuntu and had to run sudo apt-add-repository -rm ppa:natecarlson/maven3 to get my apt-get to work again.Ĭaution 2: thanks to David, you need to remove your existing symbolic link to previous versions of maven before running step 4.Sudo apt-get update & sudo apt-get install maven3 The whole process I came up with is as follows:Īdd the following line the sources.list file: Maven 3 was required to set up the system and as it turns out most of the documents out there are referring to how to install Maven to Ubuntu version 12.04 or before. This can be useful if your ubuntu apt-get repositories list is not up to date. Manual Installation via apt-get by adding maven 3 repository (Ubuntu 14.04 check out update 1): Make sure to remove maven 2 if your ubuntu is not fresh or if you were using maven 2 before: sudo apt-get remove maven2 Automatic Installation via apt-get:Ĭheckout the manual installation if your current ubuntu can not install maven via common 'apt-get install maven'. if you face the same problem as I did back then with Ubuntu 12.10. It can also be potentially useful for more recent releases of Ubuntu like Ubuntu 15.04, etc. The manual installation in this post is useful if you like to dig in deeper to your ubuntu kernel in regards with apt-get and where it finds the list of applications that are available for installation on Ubuntu I started setting up my Ubuntu 12.10 on April 2013 and the normal sudo apt-get install maven was not working for maven 3 back then. If it works for you ignore the rest of this post.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |