Skip to content

GeoCat/geonetwork

 
 

Repository files navigation

GeoNetwork

Architecture experiment for GeoNetwork 5 development setting up clean Spring Boot application for Java 21 development.

  • GeoNetwork 5: spring boot application using fresh dependencies for Java 21 development
  • Database: shared PostgreSQL database
  • Elasticsearch: index and search engine
  • GeoNetwork 4: maintain functionality during architecture transition, using Java 11 and Jetty / Tomcat environment

Get started

Requirements:

  • Java 21 / Maven Development Environment (sdkman recommended)
  • PostgreSQL Database
  • Elasticsearch
  • GeoNetwork 4, which requires Java 11 Enviornment
  • (Recommended) Docker and Docker Compose

To run GeoNetwork 5 in dev mode, you first need to run GeoNetwork 4 with shared data base:

  1. Run GeoNetwork 4.4 in your favorite way ( see GeoNetwork 4 documentation) and remind the options to connect to the database and Elasticsearch.

    Example Development Environment (with Docker Compose):

    cd docker
    docker compose -f docker-compose-base.yml -f docker-compose-dev.yml up -d

    Access GN4: http://localhost:8080/geonetwork/ (login admin/admin)

  2. Configure GeoNetwork 5 search application by editing the file config/application.yml.

    • Check the port of Elasticsearch and the database connection settings.

    • Check the index setting:

      indexRecordName: gn-records

    The example development environment does not require any configuration changes.

  3. Build GeoNetwork 5 with following command:

    mvn clean install
  4. Run GeoNetwork 5 with the following command:

    cd src/apps/geonetwork
    mvn spring-boot:run

    Access GN5: http://localhost:7979 (login admin/admin)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 75.7%
  • XSLT 23.3%
  • Other 1.0%