In order to speed up our internal testing pipeline, I have decided to set up a docker image with pre-cached maven dependencies instead of them being downloaded in our pipeline each time.
We are using the mvn dependency:go-offline command during the docker process, and it is indeed downloading the local repository and being built into the image.
However, when we run our maven target from within the container when it is run I am seeing those same dependencies being re-downloaded. Is there a flag or something that I can use to ensure that maven first looks in the local repository?