title: Using sudo to install maven projects
body: <p>I've asked a couple of questions already trying to get around this. I've tried not using maven at all, but would like to figure out why it hasn't worked for me in the first place. All the guides I see online that detail how to install maven projects just say to check out the code, go to the directory you want and</p>
  
  <pre><code>mvn install
  </code></pre>
  
  <p>and it should just work. However, I always have to use </p>
  
  <pre><code>sudo mvn install
  </code></pre>
  
  <p>As a result, my builds are successful (installing mahout and hadoop) but because the installation was done by root, a normal instance of eclipse can't access the files because it does not have root permissions. I must be doing something wrong since these kinds of problems don't seem to be mentioned by others explaining how to do maven installs. Launching eclipse as root with </p>
  
  <pre><code>sudo eclipse
  </code></pre>
  
  <p>does solve this problem, but people are forever telling me it's a bad idea to anything as root.</p>
  
  <p>Here's an example of a guide I looked at 
  <a href="http://harish11g.blogspot.co.uk/2012/02/configuring-mahout-clustering-hadoop.html" rel="nofollow">http://harish11g.blogspot.co.uk/2012/02/configuring-mahout-clustering-hadoop.html</a></p>
  
  <p>What have I missed?</p>