Resolves local repository directory by using the following resolution:
1. looks for a configuration property named localRepository;
2. looks for a framework property/system setting localRepository;
3. looks in settings.xml (see settings.xml resolution);
4. falls back to ${user.home}/.m2/repository.
Creates new settings with the following resolution:
1. looks for the specified url
2. if not found looks for ${user.home}/.m2/settings.xml
3. if not found looks for ${maven.home}/conf/settings.xml
4. if not found looks for ${M2_HOME}/conf/settings.xml