There are three methods to include a settings file in a Heroku project:
Put a file named
settings.xmlin the root directory of the project.
MAVEN_SETTINGS_PATHconfig variable to the location of a settings file relative to the root directory.
MAVEN_SETTINGS_URLconfig variable to the URL of a settings file.
For more information see the Devcenter article on using Maven settings files with Heroku.