title: How do you keep Hudson from giving Maven the -B option for builds?
body: <p>When Hudson goes to build my project, it executes Maven as follows:</p>
  
  <pre><code>Executing Maven:  -B -f /path/to/root/pom.xml clean install
  </code></pre>
  
  <p>This works fine on most projects. (The -B is for "batch" or "non-interactive mode", BTW).</p>
  
  <p>But for this one project that uses <a href="http://www.andromda.org/index.php" rel="nofollow noreferrer">AndroMDA</a> (which I can't recommend for future projects, it's really a pain-in-the-butt; slows down the build by 1000% with code generation for things that could be trivially done with inheritance and annotation-based config).</p>
  
  <p>For some reason unbeknown to me, when Maven is given the -B flag the generated classes are no put on the classpath causing compilation errors for references to the generated classes. I've tested building manually with -B and without it and the result is that it builds fine without -B (outside of Hudson) and it doesn't build with -B (again, outside of Hudson).</p>
  
  <p>Using Hudson version 1.369 and an external Maven 2.2.1 install.</p>
  
  <p>Any advice greatly appreciated!!!</p>
  
  <p>P.S. Hudson is AWESOME!!!!</p>