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.
- Check the maven version by entering the maven command mvn --version
Linux:
- Ubuntu
- Extract zip to a particular location.
- Open .bashrc and add M2_HOME & append path with M2_HOME/bin
- Check version with command mvn --version
.bashrc
terminal
- REDHAT & MAC
- enter the following command export M2_HOME = path to the extracted location
- export PATH=path to extracted location/bin:${PATH}
- execute command mvn --version to check the results.
In case of any query feel free to connect me at pratikgaurav88@gmail.com
Thank You :)