m2 repository location in pom 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)