When I created a Spring Boot application I could see mvnw and mvnw.cmd files in the root of the project. What is the purpose of these two files?
mvnw
mvnw.cmd
By far the best option nowadays would be using a maven container as a builder tool. A mvn.sh script like this would be enough:
mvn.sh
#!/bin/bash docker run --rm -ti \ -v $(pwd):/opt/app \ -w /opt/app \ -e TERM=xterm \ -v $HOME/.m2:/root/.m2 \ maven mvn "$@"