Classpath Variables when no M2_REPO, do not use the New discovery on the new.
Eclipse, Maven will read the User Home in the Maven configuration file settings.xml, the default is no such document, it will use the default location of $ {user.home} /. M2 / repository.
settings.xml configuration file which has a localRepository label, change the address you want on it.