**Maven Introduction and Installation - Notes:** 1. **Introduction to Maven:** - Maven is a dependency management and build management tool used in Selenium automation. - It simplifies the process of managing external jars and dependencies across team members. - Manual dependency management can lead to compatibility issues and effort synchronization problems. 2. **The Need for Maven:** - Maven ensures consistency across the team by automatically downloading and configuring required dependencies. - It manages Selenium WebDriver, browser drivers, and utility jars effortlessly. 3. **Dependency Management with Maven:** - Maven ensures all team members use the same version of dependencies, avoiding conflicts. - Different developers can have specific dependency versions for their tasks. - It simplifies the management of browser drivers, updating them automatically for all team members. 4. **Maven Installation:** - Maven comes pre-packaged with Eclipse, eliminating the need for a separate installation within Eclipse. - For using Maven as a build tool via the command line: - Download the Maven binary zip archive from the official website. - Extract the contents to a specific location (e.g., C:\Maven). - Set up the "MVN_HOME" environment variable pointing to the Maven directory. - Add the Maven "bin" directory (e.g., C:\Maven\bin) to the "PATH" environment variable. - Verify Maven installation by opening the command prompt and typing "mvn version."
Here's the correct sequence of commands assuming your Maven installation directory is "C:\maven\apache-maven-3.9.3": Open a command prompt by pressing Win + R, typing "cmd," and hitting Enter. Change the directory to the Maven bin directory by running the following command: bash Copy code cd C:\maven\apache-maven-3.9.3\bin Once you are in the bin directory, run the "mvn --version" command: css Copy code mvn --version This should display the version information of Maven if it is correctly installed in the specified directory.
Hello Sir, Just started following this series..i have a question how would i set up new project and how it will loaded to GIT and how to show anyone our automation suppose we learnt this series and one project we started to build then how the code it loaded to git then show to the Team.
Hi Sir, I have an error while setting up the environment variables. After checking up in CMD prompt, it says: 'maven' is not recognized as an internal or external command, operable program or batch file. Please help. Thank you.
@@mansisatpute3984 Make sure JAVA_HOME system variable must have till jdk e.g C:\Program Files\Java\jdk1.7.0_80 , don't append bin here. Because MAVEN will look for jre which is under C:\Program Files\Java\jdk1.7.0_80 Set %JAVA_HOME%\bin in classpath .
how can i fixed this error..........The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program
sir, in my laptop I already have an eclipse, but in that maven is not their sir I checked for updates even, I am not able to install a maven in my eclipse could you plz help me out sir ...
I downloaded eclipse ide and java jdk successfully but I can't import any browser driver class.only 3qiuck fixes are available ... Create class ie driver Create record ierecord Fix project setup
Great work sir. Just one question. I'm using VS CODE right now. Do i have to setup maven individually on every project that I will create? Is there an option to just set it up once?
These tutorials are SO good. You're filling in some blanks for me so it's much appreciated.
**Maven Introduction and Installation - Notes:**
1. **Introduction to Maven:**
- Maven is a dependency management and build management tool used in Selenium automation.
- It simplifies the process of managing external jars and dependencies across team members.
- Manual dependency management can lead to compatibility issues and effort synchronization problems.
2. **The Need for Maven:**
- Maven ensures consistency across the team by automatically downloading and configuring required dependencies.
- It manages Selenium WebDriver, browser drivers, and utility jars effortlessly.
3. **Dependency Management with Maven:**
- Maven ensures all team members use the same version of dependencies, avoiding conflicts.
- Different developers can have specific dependency versions for their tasks.
- It simplifies the management of browser drivers, updating them automatically for all team members.
4. **Maven Installation:**
- Maven comes pre-packaged with Eclipse, eliminating the need for a separate installation within Eclipse.
- For using Maven as a build tool via the command line:
- Download the Maven binary zip archive from the official website.
- Extract the contents to a specific location (e.g., C:\Maven).
- Set up the "MVN_HOME" environment variable pointing to the Maven directory.
- Add the Maven "bin" directory (e.g., C:\Maven\bin) to the "PATH" environment variable.
- Verify Maven installation by opening the command prompt and typing "mvn version."
More than institute....the concept was very clear in this series....i was learning selenium easily now....tq sir!👍
Thank you for the Tutorial. It is so easy to understand and you have explained each and every points in details and it makes so easy to understand.
Glad it was helpful! Keep watching and sharing.
I am a big fan of Manish sir and testing mentor. Thanks a lot.
Thank you Taradutt! I am glad the tutorials are helpful. Keep learning
Thank you so much for this tutorial sir, i learned a lot and follow all the guides clearly. It works also on my end as well.
Thank you Yan! I am glad my work is helpful!
Here's the correct sequence of commands assuming your Maven installation directory is "C:\maven\apache-maven-3.9.3":
Open a command prompt by pressing Win + R, typing "cmd," and hitting Enter.
Change the directory to the Maven bin directory by running the following command:
bash
Copy code
cd C:\maven\apache-maven-3.9.3\bin
Once you are in the bin directory, run the "mvn --version" command:
css
Copy code
mvn --version
This should display the version information of Maven if it is correctly installed in the specified directory.
Hi sir,
When there is already maven is present in eclipse? Why do we need to install it separately? What is the use?
Really thankful sir , its very easy and useful
The explanation is detail ed and easy to understand ☺️ some good stuff for study and knowledge 🐱
Glad it was helpful!
Keep watching.
Hello Sir, Just started following this series..i have a question how would i set up new project and how it will loaded to GIT and how to show anyone our automation suppose we learnt this series and one project we started to build then how the code it loaded to git then show to the Team.
Amazing course Thanks a lot, the explanation is really easy to understand XD love it
Thanku so much sir
Very nice explanation
Thank you Mitalee, Glad you liked it. Please share so that others can benefit as as well. Regards, Manish
thank u so much
Thank you sir for the detail explanantion
Hi Rahul, thank you very much, I am glad they are helpful. Regards,Manish
Hi Sir, I have an error while setting up the environment variables. After checking up in CMD prompt, it says: 'maven' is not recognized as an internal or external command, operable program or batch file. Please help. Thank you.
same issue faced
@@mansisatpute3984 Make sure JAVA_HOME system variable must have till jdk e.g C:\Program Files\Java\jdk1.7.0_80 , don't append bin here.
Because MAVEN will look for jre which is under C:\Program Files\Java\jdk1.7.0_80
Set %JAVA_HOME%\bin in classpath .
how can i fixed this error..........The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
Hi Iam facing one issue while checking the path in CMD . it is showing that the pom project is missing .why it is happening .any one help me out.
Very well explained
Thanks for liking
so worth it watch these videos... great job creator... so detailed content
Hi Kenneth, Thank you very much! I am
Glad they are helpful! Regards,Manish
@@softwaretestingmentor welcome sir
Good video
Great work sirr💗🥺
Thanks ✌️
Keep watching for more videos and tutorials.
sir, in my laptop I already have an eclipse, but in that maven is not their sir I checked for updates even, I am not able to install a maven in my eclipse could you plz help me out sir ...
Sir I have eclipse and using it on ubantu. Is it necessary to install maven?
Is there any GITHub link for the Code?
we have to enter the BIN files location in the path
thanks a lot sir
I downloaded eclipse ide and java jdk successfully but I can't import any browser driver class.only 3qiuck fixes are available ...
Create class ie driver
Create record ierecord
Fix project setup
Great work sir. Just one question. I'm using VS CODE right now. Do i have to setup maven individually on every project that I will create? Is there an option to just set it up once?
Thanks
Welcome
I don't know it's very tough to Download to setup the application software