I have a need where one one step caches keys at a particular path (~/.m2/repository) but another step would be best configured if it was able to mount the cache at another location (for instance .circleci/.m2/repository).
Specifically what I'm doing is caching the maven repositories from one job and then mounting them within another directory that will be mounted within a Dockerfile "RUN" step via "RUN --mount=type=bind,source=.circleci/.m2/repository,target=/root/.m2/repository,readwrite mvn install"