Home > java > How to update maven version on ubuntu machine?

How to update maven version on ubuntu machine?

September 20Hits:0
Advertisement

I am working on Ubuntu linux machine. When I open a terminal window and type :

mvn -v 

I got the output:

Apache Maven 2.2.1 (rdebian-1) Java version: 1.6.0_26 Java home: /usr/lib/jvm/java-6-sun-1.6.0.26/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux" version: "2.6.32-33-generic" arch: "i386" Family: "unix" 

As you saw above, my current maven version is 2.2.1 , I am wondering, how can I update my maven to verstion 3 ?

What I tried: I have downloaded maven v3.0.3 binary version, and add the /apache-maven-3.0.3/bin/ path in .bash_profile file, but when I use mvn -v command, it still shows version 2...

Answers

change the path on .bashrc instead, also remember to restart you terminal application after the changes

you need to add something like this, perhaps?

export PATH=$HOME/apache-maven-3.0.3/bin/:$PATH

Related Articles

  • How to update maven version on ubuntu machine?September 20

    I am working on Ubuntu linux machine. When I open a terminal window and type : mvn -v I got the output: Apache Maven 2.2.1 (rdebian-1) Java version: 1.6.0_26 Java home: /usr/lib/jvm/java-6-sun-1.6.0.26/jre Default locale: en_US, platform encoding: UT

  • Update Maven version in Ubuntu 8.1March 11

    My ubuntu has maven 2.0.9 version installed, but now i want to update to the newest version. Altough Im not the root, I have downloaded maven latest version, modified the M2_HOME in .bashrc file with sudo, but when i type in console mvn -version, the

  • How to update curl version on ubuntu 8.04?June 14

    On my system 8.04, curl 7.18.0 is installed: curl --version shows: curl 7.18.0 (i486-pc-linux-gnu) libcurl/7.18.0 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.1 Protocols: tftp ftp telnet dict ldap ldaps http file https ftps Features: GSS-Negotiate IDN IPv6

  • how to update python version on ubuntu 14.10January 12

    I'm trying to figure out what version of python i have installed, and also upgrade it to the latest. When I go to a command prompt and check, it looks like I have an old version of python installed. [email protected]:~$ python Python 2.7.8 (default, Oct 20

  • Is it possible to update npm version in Ubuntu 14.04?April 15

    I try to install yeoman and it require npm 1.4 I installed npm with apt-get but is has version 1.3.10 I try commands: sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs npm but the command gives error: Readi

  • Is there a rational reason to wait for the release date to download, install or update to the next version of Ubuntu?October 6

    Today, October 6th 2010, Ubuntu 10.10 is in Feature Definition Freeze, Debian Import Freeze, Feature Freeze, User Interface Freeze, Beta Freeze, Documentation String Freeze, Final Freeze, Kernel Freeze and past the Translation Deadlines in both the n

  • How do I upgrade Ubuntu 10.10 to most recent version through virtual machine? January 26

    Possible Duplicate: How to install software or upgrade from old unsupported release? Hello all I am fairly new to Ubuntu however I was not able to find an answer to this. I currently run windows 7 through which i run a program called truecrypt. Throu

  • How to trace the origin of how updates make it into my Ubuntu machine?

    How to trace the origin of how updates make it into my Ubuntu machine?August 30

    Question: How do I find the full "community history" of how the updates listed by "software updater" made it into my Ubuntu machine? The question is for the general workflow to obtain the "community history" of updates, not t

  • How to add Launchpad PPA of different Ubuntu versions to my Machine?October 29

    I want to add a certain Launchpad PPA via add-apt-repository to my machine. Is it possible to add the PPAs of several or even all Ubuntu Versions to my Machine? This is just for comparing the different versions with each other. UPDATE If it is possib

  • Why doesn't the new version of Ubuntu 10.10 show up in Update Manager?October 15

    I am currently using Ubuntu 10.04 LTS and when I run the update manager it doesn't show the new release. I have checked the "Software Sources" update tab to make sure "release upgrade" is set to Normal. I'm receiving updates from the &

  • Connect to Ubuntu machine on local network using Screen Sharing, screen doesn't updateJanuary 26

    I'm trying to connect to my Ubuntu desktop from my Mac laptop (10.6.6). The linux machine shows up fine in my network list, and when I connect to it, Screen Sharing prompts me for a password (which is how I have the Ubuntu machine configured). I fini

  • When is the best time to update the current development version of Ubuntu?February 15

    I'm testing Ubuntu development version and I want to know when to update the packages. The last time I update the packages regularly, the system broke and I had to reinstall the OS. --------------Solutions------------- I think that the first answer i

  • How do I tell which was the original version of Ubuntu installed on a machine?

    How do I tell which was the original version of Ubuntu installed on a machine?October 25

    I've got a few machines which I'm upgrading from version to version for a few years. I'm curious to find out what was the original version of Ubuntu installed on the machine. Is there a way to do that? --------------Solutions------------- Run this co

  • Need suggestion which version of Ubuntu is suitable for my machine July 24

    This question already has an answer here: What's the difference between a Long Term Support Release and a Normal Release? 5 answers How do I find out which version and derivative of Ubuntu is right for my hardware in terms of minimal system requireme

  • How to update from a unsupported version of ubuntu to latest? August 17

    This question already has an answer here: How to install software or upgrade from an old unsupported release? 7 answers How can I update my Ubuntu version (11.04) to the latest version without any disks/USB drives? I am currently running 11.04 (Just

  • What version of Ubuntu to install on a Lenovo IdeaPad Yoga MachineAugust 31

    Hey, what version of Ubuntu can I install on a Lenovo IdeaPad Yoga 11" machine? And can I run it with windows installed on Windows 8 RT garbage that is previously on this machine --------------Solutions------------- I agree with RPi awesomeness, you

  • My Update manager is not showing the latest version of ubuntu 12.04? September 7

    This question already has an answer here: How to install software or upgrade from an old unsupported release? 7 answers I am currently having ubuntu 11.04 --------------Solutions------------- As per your statement, if you want to upgrade to next vers

  • Will 64-bit version of Java JDK work on 64-bit machine running 32-bit version of Ubuntu?September 24

    I have a 32-bit version of Ubuntu 13.04 running on my 64-bit machine. I'm planning to install the 32-bit version of Eclipse 4.3 but I need to install Java JDK first. I've had problems finding 32-bit version of Java JDK, Oracle only lists 64 bit versi

  • How to update an earlier version of Ubuntu 10.04? November 18

    This question already has an answer here: How to install software or upgrade from an old unsupported release? 7 answers E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages 2 answers I tried to update Ubuntu 11.1

  • How do I update bash on EOL Ubuntu versions?September 26

    I.e. can I find a close enough package in the next nearest distro? Or is it complicated, and compiling from source is better? Or can I grab it from debian? (This question is about at least Ubuntu 11.10 and 12.10; I'm betting others are hitting this,

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.996 s.