I have a dual boot system with Windows and Linux. I have another partition which is visible to both Windows and Linux. I want to put my local repository there. How can I provide
Can't you just define both locations as separate repositories and let maven use the available one?
Or symlink /media/234242342/repository to /repository and use this path for both builds.
/media/234242342/repository
/repository
Also, have a look at maven profiles, it might be helpful!