You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Ilyevsky, Leonid (Equity Trading)" <Le...@ml.com> on 2005/08/23 18:58:58 UTC

M2: JVM options for unit test

My test requires big memory. When I build the project, the test fails
(actually it does not say why it failed - this is an error reporting
problem, but I just know that memory is the problem).
Where can I specify in pom.xml additional JVM options ?
--------------------------------------------------------

If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail.     http://www.ml.com/email_terms/
--------------------------------------------------------

Re: M2: JVM options for unit test

Posted by Kenney Westerhof <fo...@neonics.com>.
On Tue, 23 Aug 2005, Ilyevsky, Leonid (Equity Trading) wrote:

You can't. Java is already running when it reads the pom, and tests
currently cannot be forked.

It's easiest to set the MAVEN_OPTS environment variable ( for instance
export MAVEN_OPTS="-Xmx1024m" ).

-- Kenney


> My test requires big memory. When I build the project, the test fails
> (actually it does not say why it failed - this is an error reporting
> problem, but I just know that memory is the problem).
> Where can I specify in pom.xml additional JVM options ?
> --------------------------------------------------------
>
> If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail.     http://www.ml.com/email_terms/
> --------------------------------------------------------
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org