Is it possible to set the location of the settings.xml
file inside the pom.xml
file.
I know you can do it from the command line typing
Something that may help you get what you want are profiles
:
A profile in Maven is an alternative set of configuration values which set or override default values. Using a profile, you can customize a build for different environments. Profiles are configured in the pom.xml and are given an identifier. Then you can run Maven with a command-line flag that tells Maven to execute goals in a specific profile. The following pom.xml uses a production profile to override the default settings of the Compiler plugin.
Source: http://maven.apache.org/pom.html#Profiles