Hello I need to define another location for the .m2 folder. My problem is that we are having network home directories. As a result the .m2 folder is placed automatically on the network drive which is never available when you are offline. In addition to that slow network conditions makes its access very slow.
I am searching for days for a solution and as it appears several other people on the net without success. setting the MAVEN_OPTS to -Duser.home=c:\dev does nothing. I have even tryed to start it with a bat file so that I set variables for my home directory somewhere else but without any succes. It seems as the location of the .m2 is hardcoded. Is there anyone who has solved the problem? Please help