Friday, September 1, 2017

Setup Maven on Ubuntu and MacOS

Setup Maven on Ubuntu and MacOS


This post contains how to set up maven on Ubuntu and MacOS as well as finding their installation location. On Ubuntu, run the following command in the terminal:
$mvn 
The printout will indicate whether maven is installed or not. If not, run the following command to install:
$sudo apt-get install maven2
After maven is installed, its home directory is at /usr/share/maven2 (depending on your version)
To install maven on MacOS, run "$mvn --version" to check whether it is installed. If not, run the following command in the terminal to install:
$brew install maven
After the installation, to find the installation path of maven, type the following command:
$mvn --version

download file now

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.