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

What is the Maven Wrapper and why use it?

BeginnerConceptBuild Tools and Artifact Repositories
Answer

mvnw (generated with mvn wrapper:wrapper) is a script that downloads the exact Maven version declared in .mvn/wrapper/maven-wrapper.properties. It guarantees every developer and CI agent uses the same Maven without pre-installing it. Same idea as gradlew for Gradle.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Build Tools and Artifact Repositories