Monday 5 February 2018

Install Maven on Windows/Linux/MAC



Hi Fellas,

Today I'm sharing my learning to how to install Maven on Windows & Linux & MAC.



  • Download it from Maven Website.
  • You can download Binary zip archive file.
Windows:
  • Extract zip to a particular location.
  • Create a Environment Variable with name M2_HOME and path to extracted Location.
  • Append M2_HOME/bin to the user path as described in the image 

  • Check the maven version by entering the maven command mvn --version


Linux:
  • Ubuntu
  1. Extract zip to a particular location.
  2. Open .bashrc and add M2_HOME & append path with M2_HOME/bin
  3. Check version with command mvn --version


.bashrc
terminal
  • REDHAT & MAC
  1.  enter the following command export M2_HOME = path to the extracted location
  2.  export PATH=path to extracted location/bin:${PATH}
  3. execute command mvn --version to check the results.
In case of any query feel free to connect me at pratikgaurav88@gmail.com

Thank You :)


No comments:

Post a Comment

A Guide to Installing Oracle HR Schema on an Existing Docker Container

  Hi Reader, Today I want to share my learning on how to install Oracle HR schema on a existing docker container. Step 1: Download the verif...