Reading about Java applications with Docker, I noticed that some people use JDK images, such as Amazon Corretto, Eclpise Temurin, etc, and to build the project they use the Maven Wrapper (mvnw), while others use the actual Maven image, which has the "mvn" command available.
Are there any advantages or disadvantages of one approach over the other?