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