Package nar with docker maven image?

Tell in advance – I’m not a java/maven/linux developer/user.

I have a github project I need to build and package – https://github.com/simonellistonball/nifi-webdav-bundle with provided instruction https://www.tutorialspoint.com/apache_nifi/apache_nifi_custom_processor.htm. But I don’t understand how to solve this with docker image https://hub.docker.com/_/maven. In my environment I have CentOS VM with git and docker installed.

My plan is: git clone repo into host VM, create docker volume, copy repo there, run container with some params (dunno which exact) and remove container.
Am I thinking right way? Is it even possible with maven container without creating my own image?

Source: Docker Questions