Can i use shared maven repository while building maven project

I have around 50 maven java projects…Currently i need to create .m2 folder inside each project and copy settings.xml inside maven project . Is there a way where in i dont create .m2 folder inside each project and give some external location which can be used by all other maven java project ?