Chapter 1: Maven Build Tool
You've been running tests by right-clicking in IntelliJ. Works fine on your laptop. Now imagine: your lead says "set up nightly regression on Jenkins." How does Jenkins know which JARs to download? How does it compile your code? How does it find your testng.xml?
It doesn't. Not without a build tool. And in Java, that build tool is Maven.
Maven is the backbone of every Java test automation project. It downloads your libraries, compiles your code, runs your tests, and generates reports — all with one command. No Maven knowledge = no CI/CD. It's that foundational.
Maven is asked in every QA automation interview. "How do you run tests in CI?" "How do you manage dependencies?" "What is pom.xml?" — you'll get these questions from TCS to Google. This chapter gives you real answers.
Key Point: Maven automates dependency management, compilation, and test execution — it's what connects your local tests to CI/CD pipelines.