Thanks Kenney, it worked. However, setting MAVEN_OPTS should not be the
way to do it. It seems in Maven1 you could control this feature in
properties file.

Another question: can I put something in pom.xml to just skip the test?

-----Original Message-----
From: Kenney Westerhof [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 23, 2005 1:26 PM
To: Maven Users List
Subject: Re: M2: JVM options for unit test


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to