You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@continuum.apache.org by MATHUS Baptiste <ma...@mipih.fr> on 2007/12/06 15:44:21 UTC

[1.0.3] Add -Xmx to jvm parameters

Hi all,

I found this bug report : http://jira.codehaus.org/browse/CONTINUUM-44, but I'm using continuum 1.0.3.
I'd like to add something like -Xmx1024m to jvm launched by maven launched by continuum :-). 

I don't care if I must put this option for every registered projects. So if there's a solution redefinining this option globally, that will fit my needs.
What could be the best option ?

Thanks a lot.

Cheers.
-- 
Baptiste

Re: [1.0.3] Add -Xmx to jvm parameters

Posted by Raúl Casado Piqueras <ra...@juntadeandalucia.es>.
Hi Mathus.

If you want maven to be launched with this param globally, just edit the 
script mvn file (.bat if it is Windows, .sh on Unix based systems) and 
add this param to the mvn call like in this example:

@REM Start MAVEN2
:runm2
%MAVEN_JAVA_EXE% %MAVEN_OPTS% -Xmx1024 -classpath %CLASSWORLDS_JAR%  ...

Regards,

Raul

MATHUS Baptiste wrote:
> Hi all,
>
> I found this bug report : http://jira.codehaus.org/browse/CONTINUUM-44, but I'm using continuum 1.0.3.
> I'd like to add something like -Xmx1024m to jvm launched by maven launched by continuum :-). 
>
> I don't care if I must put this option for every registered projects. So if there's a solution redefinining this option globally, that will fit my needs.
> What could be the best option ?
>
> Thanks a lot.
>
> Cheers.
>