I think you need to fork the compiler. See
http://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-with-memory-enhancements.html

Martijn

On Thu, Aug 13, 2009 at 12:26 PM, kopemor<[email protected]> wrote:
>
> Hello,
>
> I am getting "java.lang.OutOfMemoryError: Java heap space" exception when I
> compile my project using Maven. I have tried several options:
>
> 1. Setting variable: export MAVEN_OPT=-Xmx1024m
>
> 2. Using Maven compile plugin:
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>        <artifactId>maven-compiler-plugin</artifactId>
>        <configuration>
>          <source>1.5</source>
>          <target>1.5</target>
>          <encoding>UTF-8</encoding>
>          <argLine>-Xms512m</argLine>
>          <argLine>-Xmx1024m</argLine>
>          <disableXmlReport>true</disableXmlReport>
>        </configuration>
>      </plugin>
>
> I have even tried to put max heap size to 4094, the result is the same.
>
> Any help?
>
> --
> View this message in context: 
> http://www.nabble.com/Maven-java.lang.OutOfMemoryError-tp24952498p24952498.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to