Long time ago this question was asked .. and the only answer was "don't do it" :-)
Hmm ... I think this question is a valid one.
Why doesn't have multi-process-file-sync in maven for a shared local repo?!
I have currently a jenkins pipeline setup where multiple parallel jobs running a maven plugin and this maven setup have only one "local" (per jenkins agent) repo - doesn't make sense to have a repo per mvn process ... this would cause duplicated downloads.
So may meanwhile maven have better support?
I found https://maven.apache.org/resolver/maven-resolver-named-locks/
Kind regards
Andreas