Interview Prep/CI/CD/Build Tools and Artifact Repositories

What is Maven and what is its build lifecycle?

BeginnerConceptBuild Tools and Artifact Repositories
Answer

Maven is a Java build and dependency tool driven by pom.xml. The default lifecycle phases are validate, compile, test, package, verify, install, deploy. Running a phase runs all earlier ones, so mvn package compiles, tests and builds the JAR. install copies it to your local ~/.m2 repo; deploy pushes it to a remote repository.

mvn -B clean verify          # CI-friendly: batch mode, no colour/progress noise
All CI/CD questions Roadmap: CI/CD fundamentals

More on Build Tools and Artifact Repositories