title: Could not create local repository at /var/root/.m2/repository
body: <p>My local maven repo is here <code>/Users/power/.m2/repository</code>.</p>
  
  <p>But I got this error </p>
  
  <pre><code>[java] [ERROR] Could not create local repository at /var/root/.m2/repository -&gt; [Help 1]
  </code></pre>
  
  <p>Seems Maven thinks that it should use a root user repo. How can I fix it? I don't need to run my maven tasks using root permissions.</p>