wiki:BuildFromSource
Last modified 8 years ago Last modified on 29.08.2016 18:24:18

Build DeepaMehta From Source

Requirements

  • JDK 6 or newer (both, Oracle JDK and OpenJDK work)

Installing JDK 7 in Ubuntu (OpenJDK):

sudo apt-get install openjdk-7-jdk
  • Git
  • Maven 3

Installing Maven in Ubuntu:

sudo apt-get install maven

Build

git clone git://github.com/jri/deepamehta.git
cd deepamehta
mvn install -P all

Run

mvn pax:run

This starts the DeepaMehta server and then opens the DeepaMehta web client in a browser window.
If no browser window appears open it manually:

http://localhost:8080/de.deepamehta.webclient/

Your terminal is now occupied by the interactive Apache Felix Gogo Shell (press return and you'll see its g! prompt).

Stop

In the Gogo shell type:

stop 0

This shuts down the web server and puts the database in a consistent state.

Run again

cd deepamehta
mvn pax:run

Update

cd deepamehta
git pull
mvn clean install -P all

This can be performed on a running DeepaMehta instance (from another terminal). The new code is hot-deployed. Of course you can stop the instance before updating as well.