I need Maven version 3.5.3 or above to build my project hosted on github. The default version for maven used in Azure pipelines CI/CD is 3.3.9. I can see that there is a way to install a different version of java using Java tool installer. I don't find such an option in their documentation for maven.
But for maven it is possible to specify the
mavenVersionOption: 'Default' # Options: default, path
mavenDirectory: # Required when mavenVersionOption == Path
But being a newbie I don't understand how to install maven and specify a path here.
Any help on how to use a different version for my maven build in Azure pipelines CI/CD would be appreciated.