Currently we specify the location of local repository in the settings.xml. Is it possible to override this setting via command line or env variable, such that I can use an a
You would need to specify the maven.repo.local parameter to do this.
maven.repo.local
mvn package -Dmaven.repo.local=/alternate/repo/location
Here is a related SO question.