You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by kopemor <de...@knollenstein.nl> on 2009/08/13 12:26:21 UTC

Maven java.lang.OutOfMemoryError

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven java.lang.OutOfMemoryError

Posted by Martijn Dashorst <ma...@gmail.com>.
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<de...@knollenstein.nl> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>



-- 
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven java.lang.OutOfMemoryError

Posted by Alexander <th...@gmail.com>.
Try -Xmx900m, -Xms128m

2009/8/13 kopemor <de...@knollenstein.nl>

>
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Regards,
Alexander

RE: Maven java.lang.OutOfMemoryError

Posted by Sammaiah Nagapuri <Sa...@hcl.in>.
Thanks alexander

Thanks & Regards
Sammaiah Nagapuri
"Inaction breeds doubt and fear. Action breeds confidence and courage. If you want to conquer fear, do not sit home and think about it. Go out and get busy."


-----Original Message-----
From: Alexander [mailto:the.malkolm@gmail.com] 
Sent: Thursday, August 13, 2009 7:34 PM
To: Maven Users List
Subject: Re: Maven java.lang.OutOfMemoryError

Hi,
No, If you already resolved all dependencies there is no need to compile
again in online mode. You could force turn on offline mode with "-o" or
"--offline" command line option. Reason why maven is trying to acces
Internet is smth like update dependencies with SNAPSHOTS version and
similar.

And what about your stacktrace - there is clearly said that connection was
dropped in cause of timeout. You should run maven commands in offline mode
as your computure (not laptop) dont have access to internet.

P.S. BTW also you could manually resolve all dependencies via "mvn
dependensy:resolve"

2009/8/13 Sammaiah Nagapuri <Sa...@hcl.in>

> Hi all,
>
> This is sammaiah nagapuri. Sorry if I am asking trivial issue. I am the new
> user for this community and I am just learning now.
>
> What the problem I am getting is in my company we don't have access to lot
> of cites. Is it really necessary to work with maven?
> And one more thing is if we download all the plugins while connecting to
> the internet and I am trying now to perform one task like compile (mvn
> compile). This time also is it really necessary the internet connection? As
> we already downloaded all the plugins. Then why it will connect to internet
> once again even though we are having some plugins in our repository?
>
> I am facing this problem nearly from 2 weeks. I am searching in google
> about this. But I am not getting any info.
>
> I am getting the stacktrace like following one.
>
> --------------------------
> F:\Ravi\sam>mvn compile
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Maven Default Project
> [INFO]    task-segment: [compile]
> [INFO]
> ------------------------------------------------------------------------
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom
> [WARNING] Unable to get resource
> 'org.apache.maven.plugins:maven-resources-plugin:pom:2.3' from repository
> central (http://repo1.maven.org/maven2): Er
> ror transferring file: Connection timed out: connect
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom
> [WARNING] Unable to get resource
> 'org.apache.maven.plugins:maven-resources-plugin:pom:2.3' from repository
> central (http://repo1.maven.org/maven2): Er
> ror transferring file: Connection timed out: connect
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> GroupId: org.apache.maven.plugins
> ArtifactId: maven-resources-plugin
> Version: 2.3
>
> Reason: Unable to download the artifact from any repository
>
>  org.apache.maven.plugins:maven-resources-plugin:pom:2.3
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2)
>
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 43 seconds
> [INFO] Finished at: Thu Aug 13 18:04:40 GMT+05:30 2009
> [INFO] Final Memory: 1M/2M
> --------------------------------
>
> Here what I done is my laptop is having internet connection. So there I
> done like 'mvn install'. Later I copied those repositories into another
> system (which is not having internet connection). There I am getting this
> problem?
>
> I am working in Bangalore. If anybody is there in Bangalore please share
> the mobile number. Then I'll call you.
>
> Please show me some way.
>
> Thanks in advance.
>
>
> Thanks & Regards
> Sammaiah Nagapuri
> "Inaction breeds doubt and fear. Action breeds confidence and courage. If
> you want to conquer fear, do not sit home and think about it. Go out and get
> busy."
>
>
> -----Original Message-----
> From: Bruno Aranda [mailto:brunoaranda@gmail.com]
> Sent: Thursday, August 13, 2009 5:10 PM
> To: Maven Users List
> Subject: Re: Maven java.lang.OutOfMemoryError
>
> It's MAVEN_OPTS
>
> Cheers,
>
> Bruno
>
> 2009/8/13 kopemor <de...@knollenstein.nl>:
> >
> > 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: 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
>
>
> DISCLAIMER:
>
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and
> intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its
> affiliates. Any views or opinions presented in
> this email are solely those of the author and may not necessarily reflect
> the opinions of HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure, modification,
> distribution and / or publication of
> this message without the prior written consent of the author of this e-mail
> is strictly prohibited. If you have
> received this email in error please delete it and notify the sender
> immediately. Before opening any mail and
> attachments please check them for viruses and defect.
>
>
> -----------------------------------------------------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Regards,
Alexander


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


Re: Maven java.lang.OutOfMemoryError

Posted by Alexander <th...@gmail.com>.
Hi,
No, If you already resolved all dependencies there is no need to compile
again in online mode. You could force turn on offline mode with "-o" or
"--offline" command line option. Reason why maven is trying to acces
Internet is smth like update dependencies with SNAPSHOTS version and
similar.

And what about your stacktrace - there is clearly said that connection was
dropped in cause of timeout. You should run maven commands in offline mode
as your computure (not laptop) dont have access to internet.

P.S. BTW also you could manually resolve all dependencies via "mvn
dependensy:resolve"

2009/8/13 Sammaiah Nagapuri <Sa...@hcl.in>

> Hi all,
>
> This is sammaiah nagapuri. Sorry if I am asking trivial issue. I am the new
> user for this community and I am just learning now.
>
> What the problem I am getting is in my company we don't have access to lot
> of cites. Is it really necessary to work with maven?
> And one more thing is if we download all the plugins while connecting to
> the internet and I am trying now to perform one task like compile (mvn
> compile). This time also is it really necessary the internet connection? As
> we already downloaded all the plugins. Then why it will connect to internet
> once again even though we are having some plugins in our repository?
>
> I am facing this problem nearly from 2 weeks. I am searching in google
> about this. But I am not getting any info.
>
> I am getting the stacktrace like following one.
>
> --------------------------
> F:\Ravi\sam>mvn compile
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Maven Default Project
> [INFO]    task-segment: [compile]
> [INFO]
> ------------------------------------------------------------------------
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom
> [WARNING] Unable to get resource
> 'org.apache.maven.plugins:maven-resources-plugin:pom:2.3' from repository
> central (http://repo1.maven.org/maven2): Er
> ror transferring file: Connection timed out: connect
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom
> [WARNING] Unable to get resource
> 'org.apache.maven.plugins:maven-resources-plugin:pom:2.3' from repository
> central (http://repo1.maven.org/maven2): Er
> ror transferring file: Connection timed out: connect
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> GroupId: org.apache.maven.plugins
> ArtifactId: maven-resources-plugin
> Version: 2.3
>
> Reason: Unable to download the artifact from any repository
>
>  org.apache.maven.plugins:maven-resources-plugin:pom:2.3
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2)
>
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 43 seconds
> [INFO] Finished at: Thu Aug 13 18:04:40 GMT+05:30 2009
> [INFO] Final Memory: 1M/2M
> --------------------------------
>
> Here what I done is my laptop is having internet connection. So there I
> done like 'mvn install'. Later I copied those repositories into another
> system (which is not having internet connection). There I am getting this
> problem?
>
> I am working in Bangalore. If anybody is there in Bangalore please share
> the mobile number. Then I'll call you.
>
> Please show me some way.
>
> Thanks in advance.
>
>
> Thanks & Regards
> Sammaiah Nagapuri
> "Inaction breeds doubt and fear. Action breeds confidence and courage. If
> you want to conquer fear, do not sit home and think about it. Go out and get
> busy."
>
>
> -----Original Message-----
> From: Bruno Aranda [mailto:brunoaranda@gmail.com]
> Sent: Thursday, August 13, 2009 5:10 PM
> To: Maven Users List
> Subject: Re: Maven java.lang.OutOfMemoryError
>
> It's MAVEN_OPTS
>
> Cheers,
>
> Bruno
>
> 2009/8/13 kopemor <de...@knollenstein.nl>:
> >
> > 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: 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
>
>
> DISCLAIMER:
>
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and
> intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its
> affiliates. Any views or opinions presented in
> this email are solely those of the author and may not necessarily reflect
> the opinions of HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure, modification,
> distribution and / or publication of
> this message without the prior written consent of the author of this e-mail
> is strictly prohibited. If you have
> received this email in error please delete it and notify the sender
> immediately. Before opening any mail and
> attachments please check them for viruses and defect.
>
>
> -----------------------------------------------------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Regards,
Alexander

RE: Maven java.lang.OutOfMemoryError

Posted by Sammaiah Nagapuri <Sa...@hcl.in>.
Hi all,

This is sammaiah nagapuri. Sorry if I am asking trivial issue. I am the new user for this community and I am just learning now. 

What the problem I am getting is in my company we don't have access to lot of cites. Is it really necessary to work with maven? 
And one more thing is if we download all the plugins while connecting to the internet and I am trying now to perform one task like compile (mvn compile). This time also is it really necessary the internet connection? As we already downloaded all the plugins. Then why it will connect to internet once again even though we are having some plugins in our repository?

I am facing this problem nearly from 2 weeks. I am searching in google about this. But I am not getting any info.

I am getting the stacktrace like following one.

--------------------------
F:\Ravi\sam>mvn compile
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [compile]
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-resources-plugin:pom:2.3' from repository central (http://repo1.maven.org/maven2): Er
ror transferring file: Connection timed out: connect
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-resources-plugin:pom:2.3' from repository central (http://repo1.maven.org/maven2): Er
ror transferring file: Connection timed out: connect
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-resources-plugin
Version: 2.3

Reason: Unable to download the artifact from any repository

  org.apache.maven.plugins:maven-resources-plugin:pom:2.3

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)



[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 43 seconds
[INFO] Finished at: Thu Aug 13 18:04:40 GMT+05:30 2009
[INFO] Final Memory: 1M/2M
--------------------------------

Here what I done is my laptop is having internet connection. So there I done like 'mvn install'. Later I copied those repositories into another system (which is not having internet connection). There I am getting this problem?

I am working in Bangalore. If anybody is there in Bangalore please share the mobile number. Then I'll call you.

Please show me some way.

Thanks in advance.


Thanks & Regards
Sammaiah Nagapuri
"Inaction breeds doubt and fear. Action breeds confidence and courage. If you want to conquer fear, do not sit home and think about it. Go out and get busy."


-----Original Message-----
From: Bruno Aranda [mailto:brunoaranda@gmail.com] 
Sent: Thursday, August 13, 2009 5:10 PM
To: Maven Users List
Subject: Re: Maven java.lang.OutOfMemoryError

It's MAVEN_OPTS

Cheers,

Bruno

2009/8/13 kopemor <de...@knollenstein.nl>:
>
> 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: 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


DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. 
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have 
received this email in error please delete it and notify the sender immediately. Before opening any mail and 
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------

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


Re: Maven java.lang.OutOfMemoryError

Posted by kopemor <de...@knollenstein.nl>.
Thanks guys for your suggestions. I have used the following compiler plugin
configuration:

    <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>
          <fork>true</fork>
          <meminitial>512m</meminitial>
          <maxmem>1024m</maxmem>
        </configuration>
      </plugin>

It helped, but not straightway.

I am using multiple project structure and have one aggregate project that
manages other sub projects and provides configuration used by all sub
projects. The compiler plugin above was specified in the aggregate project
and the project that was failing was one of the sub projects. However, when
I placed the compiler plugin configuration specified above into the sub
project's POM the compilation went fine.

I am not Maven guru and I have probably missed something, but I was assuming
that sub project will use configurations from the parent one.

Thanks for your help!




Bruno Aranda wrote:
> 
> It's MAVEN_OPTS
> 
> Cheers,
> 
> Bruno
> 
> 2009/8/13 kopemor <de...@knollenstein.nl>:
>>
>> 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: 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Maven-java.lang.OutOfMemoryError-tp24952498p24954068.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 java.lang.OutOfMemoryError

Posted by Bruno Aranda <br...@gmail.com>.
It's MAVEN_OPTS

Cheers,

Bruno

2009/8/13 kopemor <de...@knollenstein.nl>:
>
> 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: 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