title: The system is out of resources. Consult the following stack trace for details. java.lang.StackOverflowError
body: <p>I get the following stack trace when I run <code>mvn clean install package</code></p>
  <pre><code>The system is out of resources.
  Consult the following stack trace for details.
  java.lang.StackOverflowError
          at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:615)
          at com.sun.tools.javac.comp.Attr.visitBinary(Attr.java:3033)
          at com.sun.tools.javac.tree.JCTree$JCBinary.accept(JCTree.java:1785)
          at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
  </code></pre>
  <p>Here is a subsection of the stdout/stderr from Maven</p>
  <pre><code>[ERROR] COMPILATION ERROR :
  [INFO] -------------------------------------------------------------
  [ERROR] An unknown compilation problem occurred
  [INFO] 1 error
  [INFO] -------------------------------------------------------------
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 9.903 s
  [INFO] Finished at: 2020-12-09T03:55:20+08:00
  [INFO] Final Memory: 26M/596M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project test: Compilation failure
  [ERROR] An unknown compilation problem occurred
  [ERROR]
  [ERROR] -&gt; [Help 1]
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR]
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
  </code></pre>
  <p>Can someone teach/help me how to resolve this?</p>