Is there a way to get the Maven local repo location?
Using the following command you can force Maven to use a specific setting file:
mvn -s < pat
The Maven Help plugin will show local settings, including the local repository path.
You want the command:
mvn help:effective-settings
Output will show settings in XML format. Look for the localRepository element:
/home/jrs/.mavenRepo