Tried to upgrade maven. Followed this tutorial. Now I am getting this
How does a file exist and not exist?
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.
Once Maven is installed, you can check the version by running mvn -v from the command-line.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With