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
More on Build Tools and Artifact Repositories
What is the difference between `mvn package`, `install` and `deploy`?BeginnerHow do Maven dependency scopes and transitive dependencies work?IntermediateWhat is `settings.xml` in Maven and how do CI builds use it?IntermediateWhat is the Maven Wrapper and why use it?BeginnerHow do you cache dependencies and speed up Maven builds in CI?IntermediateWhat is the difference between `npm install` and `npm ci`?Beginner