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.
More on Build Tools and Artifact Repositories
What is Maven and what is its build lifecycle?BeginnerWhat 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?IntermediateHow do you cache dependencies and speed up Maven builds in CI?IntermediateWhat is the difference between `npm install` and `npm ci`?Beginner