maven set repository location command line code example
Example: maven set repository location command line
mvn -Dmaven.repo.local=$HOME/.my/other/repository clean install
mvn -Dmaven.repo.local=$HOME/.my/other/repository clean install