You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by /U <um...@comcast.net> on 2008/01/25 06:53:31 UTC

MAVEN_OPTS in pom.xml or settings.xml?

I would like to set a Java heap space value for the entire project.

Is there anyway to specify MAVEN_OPTS in the (top level) POM
or in the settings.xml?

Thanks

/U
-- 
View this message in context: http://www.nabble.com/MAVEN_OPTS-in-pom.xml-or-settings.xml--tp15081454s177p15081454.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: MAVEN_OPTS in pom.xml or settings.xml?

Posted by Wayne Fay <wa...@gmail.com>.
Not that I'm aware of, and this makes sense if you think about how
things work...

The MAVEN_OPTS parameter is processed by mvn.bat, and it is used when
mvn.bat calls to Java to execute the Maven class files themselves.
Then during its execution, Maven parses the pom.xml and settings.xml
files, so this would be too late for Maven to read and try to somehow
use the MAVEN_OPTS configuration.

You can however influence the JVM parameters for Surefire and some
other plugins that utilize a forked execution by adding parameters in
the pom.

Wayne

On 1/24/08, /U <um...@comcast.net> wrote:
>
> I would like to set a Java heap space value for the entire project.
>
> Is there anyway to specify MAVEN_OPTS in the (top level) POM
> or in the settings.xml?
>
> Thanks
>
> /U
> --
> View this message in context: http://www.nabble.com/MAVEN_OPTS-in-pom.xml-or-settings.xml--tp15081454s177p15081454.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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