Skip to content

Latest commit

 

History

History
52 lines (31 loc) · 2.17 KB

00040-SetupDevelopmentEnvironment.md

File metadata and controls

52 lines (31 loc) · 2.17 KB

Setup Oskari development environment

This document describes how to setup development environment for Oskari using source code. If you want to develop / maintain oskari yourself this is the correct section. For setting up an instance using the ready jetty bundle check out Setup Jetty

Requirements

The following items are assumed installed.

Setup Git configuration

Configure line endings: https://help.github.com/articles/dealing-with-line-endings/

Ignore file permissions:

git config --global core.fileMode false

Fetch Oskari-server source code

With commandline git:

git clone https://github.com/oskariorg/oskari-server.git

Note! You can also download the codes in zip format from Github, but for contributing any changes to Oskari git is mandatory. Additional Maven modules can be contributed outside git though if they are compatible with the current develop/master branch, but this is not adviced.

Note! The frontend source code is already available under {jetty.base}/oskari-frontend in the Jetty bundle. To update it you can replace it with code found in https://github.com/oskariorg/oskari-frontend.

Build Oskari server

This will build all modules that Oskari server is composed of.

cd oskari-server
mvn clean install

Fetch sample-server-extension source code and compile it

To test your changes on a running web app you can use sample-server-extension to create a webapp using your modified version of oskari-server. Check that the oskari.version in pom.xml matches the project version of oskari-server you built.

git clone https://github.com/oskariorg/sample-server-extension.git
cd sample-server-extension
mvn clean install

Copy updated/relevant artifacts under {jetty.base}/webapps

Map functionality: sample-server-extension/webapp-map/target/oskari-map.war