wiki:HowToCompile

Version 1 (modified by rjwalker, 16 years ago) ( diff )

Initial version

How to compile GeoNetwork

You don't need to build or use the GeoNetwork installer; you can build directly from the source code.

Once you have checked out a copy of GeoNetwork from Subversion, you need to build the system and initialize the database.

  1. Run "ant" in the top level (no need to type "ant all", the default build does the same thing).
  2. Change to the bin directory, start up GAST (use either gast.bat or gast.sh as appropriate for you).
  3. In GAST, Configure your settings - at least:
    • Configuration -> Jetty: change the port number if you like and press Save
    • Configuration -> DBMS: ditto
    • Database -> Setup: press the Setup button!
    • You get a warning about circular references; this is "normal".
  4. Quit GAST.
  5. You can now start GeoNetwork using the start-geonetwork.(sh,bat) script.
  6. Done! Load up in your browser.
  7. If you want to load the sample data, start up GAST again, i.e., after you started GeoNetwork, select Options from the Config menu and enter your database settings - for default McKoi, select "Use this account" and use "admin" as username and password. Then go to Database -> Sample data and press the Import button.
Note: See TracWiki for help on using the wiki.