Change m2 repository path
<p>I have a problem because I would like to change the m2 repository path, I am on linux I have added this <code>&lt;localRepository&gt;/tmp/m2Repo&lt;/localRepository&gt;</code> in my settings.xml but when I execute the command <code>mvn archetype:generate</code> it downloads all the content in the standard path.</p>

<p>when I use the command <code>mvn archetype:generate -Dmaven.repo.local=/tmp/m2Repo</code> this command is a success. How can I make for not use the <code>-Dmaven.repo.local=/tmp/m2Repo</code> in the command line and success ?</p>

<p>Thank you!</p>