Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upgrading Maven on Mac

Tags:

macos

maven-3

Tried to upgrade maven. Followed this tutorial. Now I am getting thisenter image description here

How does a file exist and not exist?

like image 755
nupac Avatar asked Nov 18 '13 11:11

nupac


People also ask

How do I upgrade to Maven latest version?

If you want to upgrade to a newer version of Maven, you need to download it from Maven's site, or use a package manager such as apt , or whatever your distribution uses. If you would like to migrate your projects from Maven 2. x to 3.

How do I find Maven version on Mac?

Once Maven is installed, you can check the version by running mvn -v from the command-line.

How do I download and install Maven on Mac?

To install Maven on Mac OS X operating system, we download the latest version from the Apache Maven site and select the Maven binary tar. gz file, for example, apache-maven-3.8. 4-bin. tar.


1 Answers

To upgrade to the latest version (if you have one already installed but need to update the version) do the following:

1. brew update 2. brew unlink maven 3. brew install maven 

if you then execute the mvn --version command you should see that your version of maven has been upgraded.

EDIT:
If you have an issue with the update (command 1) that goes along the lines of
error: The following untracked working tree files would be overwritten by merge: Library/Formula/...
try this answer from another issue

like image 107
Dark Star1 Avatar answered Oct 03 '22 08:10

Dark Star1