Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I get m2eclipse to recognize $M2_OPTS?
    primarykey
    data
    text
    <p>It appears m2eclipse is not recognizing my $M2_OPTS variable.</p> <p>I can run the same build outside of eclipse fine (with cranked up heapsize):</p> <pre><code>[INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 51 seconds [INFO] Finished at: Tue Nov 10 00:00:02 EST 2009 [INFO] Final Memory: 72M/187M [INFO] ------------------------------------------------------------------------ </code></pre> <p>But when I run this with m2eclipse I always run out of memory:</p> <pre><code>[INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Java heap space [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.OutOfMemoryError: Java heap space at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) ... [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 27 seconds [INFO] Finished at: Mon Nov 09 23:56:32 EST 2009 [INFO] Final Memory: 43M/81M [INFO] ------------------------------------------------------------------------ </code></pre> <p>Any ideas?</p> <p><em>SOLUTION</em> : Add the mem args to the Installed JREs tab of the Java preferences.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload