[GeoNetwork-devel] Java heap space error when building GeoNetwork

hello developers,

sometimes I run into the following error when building GeoNetwork with Maven :

[INFO] Compiling 398 source files to C:\source\nordic\trunk\web\target\classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Fatal error compiling

Embedded error: Error while executing the compiler.
Java heap space
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 45 seconds
[INFO] Finished at: Thu Oct 07 14:28:40 CEST 2010
[INFO] Final Memory: 41M/63M
[INFO] ------------------------------------------------------------------------

This is using a machine with 32-bits Windows 7 Professional, 2.80 GHz, 4.00 GB RAM, using Maven 2.2.1 and JDK 1.5.0_22.

Just in case you run into a similar mishap, the error went away after setting

set MAVEN_OPTS=-Xmx1024m

before issuing the mvn clean install command.

Kind regards
Heikki Doeleman

On Thu, Oct 7, 2010 at 10:01 AM, jose garcia <josegar74@anonymised.com> wrote:

Hi

It’s created the 2.6.0 tag with the revision 6606, the one used for the published installer.

Also updated branch 2.6.X and trunk pom files as suggested by Matthew and integrated the Maven Release Plugin.

To create the SNAPSHOT i did:

  1. Update root pom version to 2.7.0-SNAPSHOT and execute:

  2. Execute: mvn --batch-mode release:update-versions -DdevelopmentVersion=2.7.0-SNAPSHOT

This command updates all modules pom files version.

The first manual step in root pom seem necessary, if not i got this message: You don’t have a SNAPSHOT project in the reactor projects list.

The plugin has some targets to create releases and create the SVN tag automatically, etc. I’ll check to document in developer manual on how to use it.

Regards,
Jose García

On Wed, Oct 6, 2010 at 1:55 PM, Mathieu Coudert <mathieu.coudert@anonymised.com> wrote:

Hi Matthew,

My comments below.

On Wed, Oct 6, 2010 at 1:27 PM, Matt Blanchette <matt.blanchette@anonymised.com.31…> wrote:

Is there a reason the 2.6.0 tag is missing from the tags directory in the
SVN?
I only see a 2.6.0RC2 tag.

No reason at all, we should create it soon.

Is there also a reason both trunk and the 2.6.x branch are still using 2.6.0
as their version?
I would think the branch would be 2.6.1 or later and trunk would be 2.7.0,
or actually more appropriately 2.6.1-SNAPSHOT and 2.7.0-SNAPSHOT.

The same, should be updated soon to be consistent.

Have you looked at the Maven release plugin to perform these actions (both
tag and increment the project version)?

I quickly did but we are not so far in the maven process since we just move three or month ago to maven build process…
Any feedback on that or any contribution would be greatly appreciated.

Thanks,

Cheers,

Mathieu Coudert


Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork


Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork