- start IDEA. Open some project (not imported from Maven)
- in Maven view open the Default settings dialog. Specify the maven home and the non-default path to user settings.xml file. In this file specify the non-default local repository.
- import any maven project (via OpenProject) —> the used libraries are located in the specified local repository, ok.
- now open the Default settings again and uncheck the 'override default' button for the settings.xml. So the default local repository ($USER_HOME/.m2) should be used on the next project import.
- via OpenProject import new maven project:
---> the non-default local repository is still used. The MavenSettings for this project are not the same as default maven settings.
Restart IDEA, import new project – now the default settings are used
Issue was resolved