Make custom settings.xml become part of pom.xml profile build
<p>By default, the settings.xml exists under <code>.m2/settings.xml</code> and it contains our project specific preference.
Somehow we decided to move this setting.xml into project root e.g  <code>/myproject/settings.xml</code>,   so it is next to pom.xml now.</p>

<p>When I run <code>mvn clean install -s settings.xml</code>,  it builds without problem.
Now the new requirement is , to build this settings.xml as part of the build profile in pom.xml,  so somewhere in pom.xml has reference to the local project settings.xml path
So evetually when we run <code>mvn clean install</code>  (without <code>-s settings.xml</code>)  the project shall build and automatically pick up the local project setting.xml.
Is it possible?
Thanks for any suggestsions. </p>