title: Maven import in Intellij IDEA runs out of memory on a large project
body: <p>Import of Maven project ends with</p>
  
  <pre><code>Exception java.lang.OutOfMemoryError: GC overhead limit exceeded
  </code></pre>
  
  <ol>
  <li>I've tried to define an environment variable: <code>MAVEN_OPTS = -Xmx1g</code>.</li>
  <li>I've tried to add <code>-Xmx1g</code> to Maven VM options via Settings -> Build Tools -> Maven -> Runner.</li>
  </ol>
  
  <p>Without success. What else can I do?</p>