[ODK Community] build ODK Aggregate from source code (out of memory error on gae unit test)

Maven for Eclipse is getting better but I haven't used it in a while, and
I've only used it for development on those platforms -- I never tried to
run the selenium scripts within Eclipse. I don't know quite what it would
do with the selenium UI test framework; it might need substantially more
JVM resources to run that within Eclipse. This may be an Eclipse
configuration issue (eclipse.ini) and not a mvn one. Let me know what you
figure out, and I will update the CONFIGURE.txt.

To build only the PostgreSQL code:

  1. edit pom.xml
  2. go to the section
  3. remove all the entries that have 'gae' or 'mysql' in them.
  4. Then you would just do mvn install against that top-level pom file, and
    it would only build the common and PosgreSQL-specific projects.

For official release images, I always use the command-line 'mvn install' to
produce the WAR image used by the installer.

Mitch

ยทยทยท On Sun, Nov 18, 2012 at 10:07 AM, wrote:

Hi there,

I'm almost able to build the ODK Aggregate project from source code. I
have a few questions:

  • When I build the gae unit test project in Maven I get a Java heap space
    error. Even after setting the max heap space memory to 1GB (by setting
    MAVEN_OPTS to -Xms512m -Xmx1024m -XX:MaxPermSize=256m) the out of memory
    error persists.

  • I'm only interested in deployment to PostgreSQL based servers. Can I
    build my WAR file in Maven for PostgreSQL without having to go through the
    process of building and unit testing both the GAE and mySQL projects? I'm
    not too familiar with Maven so would not want to tinker with the POM files
    unless absolutely necessary.

  • In the CONFIG.TXT file to ODK Aggregate it mentions that the Maven for
    Eclipse plugin is still buggy. Does this mean I cannot compile the
    PostgreSQL ODK Aggregate from Eclipse and will have to use mvn install to
    compile in command prompt?

Thanks a lot for your help!

Lu

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com