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 – with provided instruction But I don’t understand how to solve this with docker image 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