| 1 | [[PageOutline]] |
| 2 | |
| 3 | = Build from Source = |
| 4 | |
| 5 | == Requirements == |
| 6 | * '''Java 1.6''' [[BR]] |
| 7 | Older Java versions do not work. |
| 8 | |
| 9 | * '''Git 1.7''' [[BR]] |
| 10 | Most likely other Git versions (older and newer) work as well. |
| 11 | |
| 12 | * '''Maven 3''' [[BR]] |
| 13 | Most likely Maven 2 works as well. |
| 14 | |
| 15 | |
| 16 | == Build == |
| 17 | {{{ |
| 18 | git clone git://github.com/jri/deepamehta3.git |
| 19 | cd deepamehta3 |
| 20 | mvn install -P all |
| 21 | }}} |
| 22 | |
| 23 | == Run == |
| 24 | {{{ |
| 25 | mvn pax:run |
| 26 | }}} |
| 27 | This starts the DeepaMehta server and then opens the DeepaMehta web client in a browser window. |
| 28 | If no browser window appears open it manually: http://localhost:8080/de.deepamehta.3-webclient/index.html |
| 29 | |
| 30 | Your terminal is now occupied by the interactive Apache Felix Gogo Shell (press return and you'll see its {{{g!}}} prompt). |
| 31 | |
| 32 | == Stop == |
| 33 | |
| 34 | In the Gogo shell type: |
| 35 | {{{ |
| 36 | exit 0 |
| 37 | }}} |
| 38 | This shuts down the web server and puts the database in a consistent state. |
| 39 | |
| 40 | |
| 41 | == Run again == |
| 42 | {{{ |
| 43 | cd deepamehta3 |
| 44 | mvn pax:run |
| 45 | }}} |
| 46 | |
| 47 | |
| 48 | == Update == |
| 49 | {{{ |
| 50 | cd deepamehta3 |
| 51 | git pull |
| 52 | mvn clean install -P all |
| 53 | }}} |
| 54 | 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. |
| 55 | |