I have set the global settings.xml file in the maven>installations preferences and I have also set maven>user-settings to point somewhere else.
There is something else in m2e that is causing it to look in ~/.m2 - perhaps a bug? - but I cannot figure out what. Cheers, Eric On Tue, Aug 2, 2011 at 4:42 PM, Fred Bricon <[email protected]> wrote: > m2e uses an Embedded Maven version. It has no knowledge of any existing > maven installation (you could use m2e without installing maven locally) > So you need to tell m2e explicitely what global configuration it must use. > Go to Window > Preferences > Maven > Installations > Global settings > > HIH > > Regards, > > Fred Bricon > > 2011/8/3 Eric Kolotyluk <[email protected]> > >> I've been trying for over an hour to get m2e stop using ~/.m2 as my local >> repository. >> >> In my global settings.xml file I have >> >> <localRepository>C:/Program Files (Open)/maven/.m2</localRepository> >> >> I do not have any ~/.m2/settings.xml, so I am assuming it should default >> to the global settings. It certainly is reading the global settings. >> >> And sure enough in Eclipse C:/Program Files (Open)/maven/.m2 shows up as >> my local repository. But for some reason whenever I build something it puts >> everything in ~/.m2, and when I do an install it puts everything there too. >> >> It is also putting stuff in C:/Program Files (Open)/maven/.m2 as well, but >> it seems to be rather schizophrenic about where the actual local repository >> is. Is there any way I can convince m2e to not use ~/.m2 and obey the global >> settings.xml? >> >> Cheers, Eric >> >> _______________________________________________ >> m2e-users mailing list >> [email protected] >> https://dev.eclipse.org/mailman/listinfo/m2e-users >> >> > > > -- > "Have you tried turning it off and on again" - The IT Crowd >
_______________________________________________ m2e-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users
