title: Hudson - Maven is failing (cannot create /dev/null/.m2) on Tomcat-6 - Gentoo
body: <p>I'm having major issues with getting Hudson up and running on a gentoo server with Tomcat 6. I'm able to deploy Hudson just fine, and I can browse the web-application, configure it and set up builds etc.</p>
  
  <p>However, when I try to run a build (in example "clean test" on a Maven2 project) I get this error</p>
  
  <pre>
  ERROR: Failed to create /dev/null/.m2
  </pre>
  
  <p>I've google'd and for some it seems to be helping to put -DHUDSON_HOME=/home/hudson and -DMAVEN_HOME=/home/hudson in /etc/init.d/tomcat-6's JAVA_OPTS. However, I've tried that <em>and</em> by doing the same in /etc/conf.d/tomcat-6 , but I'm still getting this error.</p>
  
  <p>Has any of you had to deal with this before?</p>