Skip to content
jesseeichar edited this page Nov 23, 2012 · 2 revisions

Clone geocat

git clone git@github.com:camptocamp/geocat.git
cd geocat

Checkout development branch

git checkout geocat_trunk

Choose configuration overrides file

  1. Evaluate web/dev-config/override-config-dev-default.xml
  2. If defaults are not satisfactory then
  • Copy file and change defaults
  • or
  • Create new Xml File with form:

<overrides>
  <import file="<full-path-to override-config-dev-default.xml>"/>
  ... Overrides defaults
</overrides>

Choose logging configuration file

Evaluate web/dev-config/log4j-*.properties to see if one satisfies your requirements. If not the create a new one with your username at the end. If one satisfies your requirements then remember the name of the file.

Create configuration

  • Create new bin/config-.sh file. must be the value returned by executing whoami from the commandline
  • Review the defaults variables in the config.sh file and add the values you would like to override in your local environment.

Build Entire Geocat

(from root of checkout) mvn clean install

You will see what appear to be errors when the tests in the web module run. That is fine. The errors will look like:

java.io.FileNotFoundException:
  /Users/jeichar/Projects/geonetwork/geocat_trunk/web/src/main/webapp/WEB-INF/data/config/schema_plugins/iso19139.che/schematron-rules-iso.xsl (No such file or directory)

javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 1 error detected.

As long as the tests pass then don't worry.

Perform initial setup

bin/clean.sh

The script can also be used to reset system to a clean state. This is occasionally required when major pulls from the main repository has been done.

Run Geocat

bin/run.sh

If all goes well you should be up and running shortly.