Hey,
I'm new to maven so forgive me if this is a stupid question or if it has
been previously answered; however I have not found anything on Google.
Can someone tell me how to specify a custom location of the .m2
directory? I need to put this folder outside of the user.home
directory.
Hi,
you can add -Duser.home=<path> in your MAVEN_OPTS env variable, where <path>
is the path to the folder
containing you .m2 directory.
--
Olivier Jacob
Consultant - OCTO Technology
50, avenue des Champs Elysées
75008 Paris