change deafult .m2 location windows 10 code example
Example: maven print repository location
RESULT=$(mvn help:evaluate -Dexpression=settings.localRepository -q -DforceStdout)
RESULT=$(mvn help:evaluate -Dexpression=settings.localRepository -q -DforceStdout)