How to install Maven on Mac OS Beginners Tutorial
ฝัง
- เผยแพร่เมื่อ 16 ม.ค. 2025
- FREE online courses - automationstep...
How to Install MAVEN on Mac OS
Step1 : Check if Maven is already installed
$ mvn --version
Step2 : Download Maven from internet
maven.apache.o...
Step3 : Unzip and place at some location on your system
Step4 : Set System variables
M2_HOME
PATH
Step5 : Check again if Maven is installed
--------------------
To Make Maven available for future sessions
Step 6 : Create .bash_profile
$ touch .bash_profile
Command to view hidden files
$ defaults write com.apple.finder AppleShowAllFiles TRUE
Can also check some other options - stackoverflow....
Note - In case you want to use Brew check - www.appsdevelo...
_______ ONLINE COURSES TO LEARN _______
Visit - automationstepb...
----------- UI TESTING -----------
Selenium Beginners - bit.ly/2MGRS8K
Selenium Java Framework from Scratch - bit.ly/2N9xvR6
Selenium Python - bit.ly/2oyMp5x
Selenium Tips - bit.ly/2owxc50
Selenium Builder - bit.ly/2MKNtlq
Katalon Studio - bit.ly/2wARFdi
Robot Framework - bit.ly/2Px6Ue9
----------- API TESTING -----------
Web Services (API) - bit.ly/2MGafL7
SoapUI - bit.ly/2MGahmd
Postman - bit.ly/2wz8LrW
General - bit.ly/2PYdwmV
----------- MOBILE TESTING -----------
Mobile Playlist - bit.ly/2PxpeUv
----------- CI | CD | DEVOPS -----------
Jenkins Beginner - bit.ly/2MIn8EC
Jenkins Tips & Trick - bit.ly/2LRt6xC
Docker - bit.ly/2MInnzx
----------- VERSION CONTROL SYSTEM -----------
Git & GitHub - bit.ly/2Q1pagY
----------- PERFORMANCE TESTING -----------
JMeter Beginner - bit.ly/2oBbtIU
JMeter Intermediate - bit.ly/2oziNVB
JMeter Advanced - bit.ly/2Q22Y6a
JMeter Tips & Tricks - bit.ly/2NOfWD2
Performance Testing - bit.ly/2wEXbLS
----------- JAVA -----------
Java Beginners - bit.ly/2PVUcXs
Java Tips & Tricks - bit.ly/2CdcDnJ
----------- MAVEN -----------
Maven - bit.ly/2NJdDRS
----------- OTHERS -----------
Redis- bit.ly/2N9jyCG
Misc - bit.ly/2Q2q5xQ
Tools & Tips - bit.ly/2oBfwoR
QnA Friday- bit.ly/2NgwGpw
Sunday Special - bit.ly/2wB23BO
Ask Raghav- bit.ly/2CoJGWf
Interviews - bit.ly/2NIPPxk
All Playlists - bit.ly/2LSiezA
----------- Follow -----------
Facebook - / automationstepbystep
Twitter - / automationsbs
TH-cam - / automationstepbystep
_________________________________
FREE online courses - automationstepbystep.com/online-courses/
I will never understand why people make it so complicated to install a simple library. Thank you!
that's why Bill Gates is so rich, he make things simple
Dude thank you so much! I tried several other tutorials unsuccessfully but yours totally worked. Really appreciate you taking the time to put this together. You're a lifesaver!
I m glad it helped.
HINT to see the hidden files faster:
1. Go to your user folder
2. Press SHIFT+CMD+.
Thanks man for the great video!
You saved my day! After 3 hours messing with incomplete tutorials, it finally works :) Thank you.
I am glad Antonela that it helped you.
THANK YOU SO MUCH!!! I have searched high and low for tutorials on this and yours is the only one that actually worked!
I am so happy to know this helped Caroline. Do like, subscribe and share
Thanks so much brother! This is the only good and straight forward tutorial I found!! One last thing, I had a slight issue with the show hidden files on Mac OSX Sierra instead of "$ defaults write com.apple.finder AppleShowAllFiles TRUE" use "defaults write com.apple.finder AppleShowAllFiles YES" without using quotes and every other step in the tutorial should be straight forward! Again thanks so much, thumbed up!!
Thanks for liking and adding this info. Appreciate it.
yes I had to use YES. But overall this video is GREAT
Also to show hidden files, there is a short cut (cmd + shift + .) This is really useful and saves time.
you need to understand what the $ sign means. Usually in ubuntu and Mac terminal it means that you have super user acces.
The $ sign will allways be there if you are logged in as superuser (with admin rights).
Watched Multiple Vides on Installing Maven on MAC. Nothing worked. You were straight to the point instead of making it complicated. Thanks
So happy & humbled to know Mahesh
its a amazing video for those who totally new for done the maven setup... just follow the words and setup is done. THANKS
Glad to know this Khushboo
BEST BEST BEST AUTOMATION GURU TO FOLLOW ON TH-cam. YOU ARE AMAZING, RAGHAV! KEEP IT UP!
Thanks, humbled by your message
Really helpful tutorial, the environment variables was very well explained and easy to follow, I always used to have problems setting those up but not this time.
I am glad Stuart, it helped.
Very helpful, I appreciate the fact that you explained how to work with terminal, bash profiles and the like. Not just a quick run through like most people do, but you explained the typical approaches and the effects as well (e.g. setting path variables via terminal vs. via .bash_profile). This helped me better understand how to work with the terminal and where to store downloaded resources that you may wish to make available system-wide (e.g. maven). I also really like your approach of documentation (using TextEdit) as you work through your tutorial. Thank you for this great resource, I look forward to viewing your other tutorials!
Most welcome George
Thank you for documenting this installation process! You are a lifesaver. :)
i am glad it helped Kris
Thanks a lot for the help. I was struggling for days. Your classes are very useful.
i am glad it helped.
I must say you are life saver for beginners , I always found your all videos very helpful, thank you very much sir, appreciate your work.
Most welcome
The best tutorial on mvn setup!
THX!
I am glad it helped.
Thanks really good video, I just stuck while editing the bash profile. I was unable to see that in my hidden files. So, used
"open -e .bash_profile" . to edit the bash profile.
Thank you. The same problem occurred to me. I resolved it with the command you used.
Nice video, Thank you for the detailed explanation of installation.
Loved the way you explained.
Glad it was helpful!
Thanks A LOT!!!
I was struggling with installing maven so long..)))))
Your video is a real treasure !)))
So happy and humbled to know this Руслан
Thanks.. I was facing problem installing Maven in my sytem through seening many videos.. but finally got it done seeing your lecture..
so glad to know this Bikram
Great and informative video...
To summarise the whole video:
1) Download maven zip
2) sudo touch .bash_profile
3) sudo nano .bash_profile
export M2_HOME=/Users/keatooon/apache-maven-3.3.9/
export PATH=$PATH:/Users/keatooon/apache-maven-3.3.9/bin/
export JAVA_HOME=$(/usr/libexec/java_home)
export PATH=$JAVA_HOME/jre/bin:$PATH
THANK YOU RAGHAV! You are the man!
i am glad it helped Philip
Thank you so much Raghav..This is really helped me to solve my problem..I have struggled to solve this issue for 2-3 hours and finally, your video helped me a lot to solve my problem with no time..Thanks a lot and keep up the good work
Glad it helped Bharathi
Instructions are very clear! THANK YOU, sir! You are a great instructor!
Awosome video, nothing could be better than this!!! Thanks for your efforts.
You're welcome Aradhika
thank you lot !
you use very simple english and this is very understandable !
please do it again :)
thanks. I will continue my work.
Hi Ragav, your video really help me to set up maven in my macbook pro. thanks a bunch.
I am glad it helped Umesh.
GREAT tutorial - instructions were simple, clear and super easy to follow! Looking forward to checking out more of your work. Thank you!
Thanks, glad to know this Dyana
You’re a life saver for Mac owners.Thank you!
You're welcome Meklit
Thank you very much. This helped me get maven installed. Very simple and straight to the point.
Thx so much dude, i've been in a mess for so long today and you had been my light :-)
I am glad it helped.
The only video that could solve my problem.
i am glad it helped.
Best easy to understand tutorial on here. Everyone else made this way too confusing.
Glad to know this helped Karl
Thank you! I installed maven in 5 minutes.
Very useful - thanks!
Thank you very much, very helpful video. Keep up the good works!!!
Thank You. keep learning.
This was so helpful. Thank you!
You're welcome Patrice.
Amazing video thank you!
Thank you Mr.Raghav. Excellent work
I am glad it helped
Thank you for this video. I looked for a easy explanation but only you did it well
So glad to know this Lukas
Thansk, before a long time breaking my head with bad tutorials i find you, thanks˜
Glad to know this Daniel
Clear, straight to the point and informative. Thanks a lot !
Glad to know it helped Fuanasa
Thank you so much for your video!
Excellent Video mate. One tip, press "Command + Shift + Period to instantly toggle to show hidden files or hide again
Right Sudershan, I discovered this later. Thanks for the inputs
thanks for the help... was facing session issue.. thanks again
You're welcome Shubhank.
you saved my life! thank you!
Humbled to know this. Thanks for watching Justin.
Finally a tutorial that really explains the way to install maven! Thank you!
Thanks for watching Pedro
Can you send your email or phone I have questions my email melkiekebede4 @gmail.com about mulesoft I cannot do it pls
Wonderful demo.. Thansk Raghav !
Really good video! Thank you so much
Thank you so much!! You really helped simplify things with this video.
You are welcome Alysha.
Thank you, Finally I installed it.
glad you did it.
Thank you for the video you changing life’s out here.
So humbled to know this lara
Automation Step by Step - Raghav Pal
I’m still having problems saying can’t find (mvn -version) is there a way you can help?
Hi lara, after you have setup maven and env variables open a new terminal and then run this command
mvn --version
Note - In case you want to use Brew check - www.appsdeveloperblog.com/how-to-install-maven-on-mac-os/
Thanks a lot
You're welcome
Thank you very much, I solved my problem through this video.
You're welcome!
Very perfect and detailed explanation! Thanks!
You're welcome Sun
Thank you. You're the greatest!
I am glad it helped you.
Really helpful
if after all the steps you cannot see that light at the end of the tunnel as happened to me haha, you also need to refresh your .bash_profile doc, with:
$ source .bash_profile
and then try again
$ mvn --version
and there you go!
:)
thanks for the inputs Kathy
Yes it worked thank you Kathy, and big thanks to Raghav sir! I was getting stuck exactly there, this worked
excellent video, straightforward and worked for me! Thanks x
So happy to know this Diksha
Thank you so much for this video :)
thanks for watching.
thank you
Awesome tutorial Raghav, thank you so much..and keep it up.
you're welcome Satish
This was great! Very clear, succinct and helpful. Thank you!
you're welcome
Amazing video... each and every steps are mentioned nicely 👍🏽
Thanks for the message Lalit
I really have no words to to Thank you enough. You are really life saver ! Huge Huge Huge THANK YOU !!
You're welcome Ashwini, Humbled by your message
You made it really simple and understandable, Thank you, Thank you so much.
Thanks for watching Hamed
Thank You for saving time for us.
i am glad it helped Prashant
Thanks a lot, for maksing it so simple.
you're welcome Nirmal
Thanks alot for the maven tutorial Raghav!
You're welcome Raghav
simple and to the point. thank you!
You're welcome Ahmed
Thank you very much!
Thank you, very easy to follow!
thank you very much! I know how to do this on PC, but now I'm trying this on the MAC.
Great to knwo this Lyndon
Is there any downside to installing Maven with Homebrew vs the method you did up here?
Hi Steven, if you have homebrew, can use it, I created this video several years ago, and did not know much about homebrew that time
Thank you so much, you've helped me a lot. Hugs
Great tutorial! Really clear cut and easy to follow. Thank you so much!!
Thanks for watching David
thank you a lot.This tutorial is extremely useful
Great to know this. Thanks for watching.
Great video but forget to say that we have to add
export JAVA_HOME= " jdk path " in .bash_profile
thanks for adding.
works 100% thank you man..
Best tutorial out there, Thanks!
Thanks a lot for your message Arturo
thanks for the video! really simple! keep on going!
Thanks for watching.
I typed "open ~/.bash_profile" this opened up a different .bash_profile than the one that I could see under hidden files and put my variables inside and it worked.
Awesome! Thank You !
The best tutorial! Thank's.
You're welcome.
Thanks for helping on this
Most welcome Kailash
Thank you so much! Save my time!
Glad to know this Shichun
IT works! THANK YOU SO MUCH MAN!
You're welcome
its working thanks bro :)
Thank you!
Thanks
Amazing! You made it so easy! Thank you :)
You're welcome Alinna
Thank you so much yaa. you really saved my another day. Really appreciated!!
Glad to know this
Thank you !!!!!!!! :)
Note: I think you have to set the JAVA_HOME env variable in you .bash_profile too
Example:
export JAVA_HOME=$(/usr/libexec/java_home)
why moving of folder required terminal ? Can't we do directly
We can Vaibhav, just you know one more way now :)
@@RaghavPal oh.. thanks :)
Very nice video
Bhai meh choti moti help kari thank you
U saved my day !!!! Thank u
Great to hear that. thanks
awesome, thakns!
you're welcome
thank you sir