I'd like to configure a job using the
maven wrapper (mvnw). The wrapper works the same way as gradlew but wraps maven instead. I'd prefer to use the wrapper so that I have more control over which version of maven is used for the build than I would if I had to rely on the versions installed in jenkins, which I do not have control over.
I see that the gradle dsl supports useWrapper but I do not see that option for the maven jobs.
Is there a recommended way to use the maven wrapper?
Freestyle job is an option but a lot of the functionality that the maven job provides would not be available out of the box with that approach, right?
Thanks,
David