Maven resolver settings

Hello,
Maven resolver ignores parameter "-s" from maven command. This solution enables change location of settings.xml file (default is "~/.m2/settings.xml") according to the parameter "-Dsettings=PATH".
Is it possible to add something like this to source code? Thanks.