Although there is already the Maven job type as well a a dedicated build step ("Invoke Top Level Maven"), tt is sometimes necessary to invoke Maven from other processes and tools. e.g. shell, make.
Therefore it would be nice to expose a Maven environment, i.e. M2_HOME and the like in the path as a build wrapper in the same fashion this is already available for Go, NodeJS and others.
I have an implementation already available and will create a PR soon after doing some cleanup, e.g. documentation, etc.