Back to Course
Jenkins & CI/CD

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 bin directory to the system PATH.
  • Set the MAVEN_HOME (or M2_HOME) environment variable to point to the extracted folder.
  • Verify the installation by running mvn -version in 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.

Ready to master real-world software testing?

Learn manual and automation testing hands-on with mentor-led sessions.

Explore Course