title: Maven: Attempting to create memory dump for unit tests
body: <p>I have difficulty creating a memory dump for my unit tests which produce out of memory errors.</p>
  
  <p>My MAVEN_OPTS contains the following:</p>
  
  <pre><code>-Xmx1024m -XX:-HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=C:\Temp
  </code></pre>
  
  <p>However, when I run my unit tests from the command line using "mvn install", I do not get any such memory dump when the OutOfMemoryError occurs.</p>
  
  <p>How do I get the memory dump?</p>
  
  <p>Thanks</p>