Geomajas Community Documentation

1.1. maven compilation, targets, profiles, variables

When doing an initial compilation of Geomajas, you may need to start compilation from the "build-tools" and then the "backend" directories. Only when these are compiled, compilation from the project root will succeed.

cd build-tools
mvn install
cd backend
mvn install
cd ..
mvn install

The source contains one main pom which allows building of the Geomajas framework and each of the sample applications in one go.

You can also choose to build them individually.

There are a couple of profiles defined which should help during development:

  • -DskipShrink: do not use shrinking when building or using the dojo face. When not specified, a shrinked version of the javascript files is used. The files are compressed and combined for faster loading and better caching.

  • -DskipDocs: do not build the documentation module. Can speed up the build a little.

  • -Dfull-build: from the root project, this enables inclusion of the build tools and documentation in the build. This is actually enabled by default (to desable use -Dhudson"),

  • -Dhudson: profile for running the selenium integration tests on the hudson continuous integration server. As long as running the tests on the ci server proves problematic, this will disable these tests.