Maven Installation (Selenium Project Setup)
Why Maven for a Selenium Project?
Maven manages the Selenium, TestNG, and other library dependencies a project needs, and defines a standard build lifecycle that both Eclipse and Jenkins can run identically.
Installation Steps
- Download Apache Maven from the official Apache Maven website.
- Extract it to a folder and add its
bindirectory to the system PATH. - Set the
MAVEN_HOME(orM2_HOME) environment variable to point to the extracted folder. - Verify the installation by running
mvn -versionin a terminal.
Why This Matters
A correctly installed Maven is what allows the exact same mvn test command to build and run the Selenium suite consistently, whether it's run locally in Eclipse or automatically inside a Jenkins job.
PreviousJenkins Installation (Selenium Project Setup)
Next Dependencies and configure Maven Project (Selenium)
Ready to master real-world software testing?
Learn manual and automation testing hands-on with mentor-led sessions.
.png)