Setting MavenUserHome (.withMavenUserHomeOverride(Path)) will allow user to totally control all possible settings of MIMA by setting different XMLs in that directory. Setting localRepository will only change the cache, and if someone needs other controls, more options flags have to be added. So I think providing an option for MavenUserHome would be a better solution.