# HG changeset patch # User Giannis Vlachopoulos # Date 1410445977 -10800 # Node ID 8d50279a662c8ce0bbc9bec0b277f885807366e2 # Parent 7c0e94008b6241df21a1965b0b9af01f09880dee Bug #58 : Strabon goes debian v1. endpoint-exec/pom.xml was added to use the jdeb maven plugin to create the .deb of the stand-alone executable jar. See more details in endpoint-exec/pom.xml. What to do next: 1) Add dependencies. We should discuss which dependencies should be added. (java? postgresql? how to declare them? i.e. oracle java, default-jdk/jre or openjdk/jre? and also which versions. Currently strabon is installed assuming that dependencies are met already. 2) Enrich the mainClass so that new arguments are supported regarding the connection properties instead of having an "endpoint" db for example (or port). In other words, instead of relying solely on connection.properties inside the executable jar, the user should also be able to input his own connection properties via cmd. 3) The executable script/command strabon-endpoint should dynamically adjust to the jar created. Currently it is hardcoded to strabon-endpoint-executable-3.2.10-SNAPSHOT.jar. However, I doubt whether this is feasible, since the script is a resource for the package and we cannot be sure that the jdeb plugin of maven can modify a file (via maven). Consequently, a manual solution should be employed at least for now. How to install: a. The .deb package is built by executing in the base dir: $>mvn clean install b. then $>sudo dpkg -i .deb How to execute: Just run: $>strabon-endpoint (from any current working directory) note: make sure that port 8080 is not in use though (will be fixed in TODO 2). diff -r 7c0e94008b62 -r 8d50279a662c ChangeLog --- a/ChangeLog Wed Sep 10 11:46:14 2014 +0300 +++ b/ChangeLog Thu Sep 11 17:32:57 2014 +0300 @@ -2,6 +2,11 @@ * Version 3.2.10 released. + * Strabon goes debian v1. the endpoint-exec jar is now given in a .deb + format. By dpkg-ing it, one can run a stand alone strabon endpoint + locally. + (bug #45 http://bug.strabon.di.uoa.gr/ticket/58) + * Fixed a bug in which Strabon hanged when a unary spatial construct had a ternary spatial construct as argument. (bug #45 http://bug.strabon.di.uoa.gr/ticket/45 diff -r 7c0e94008b62 -r 8d50279a662c endpoint-exec/pom.xml --- a/endpoint-exec/pom.xml Wed Sep 10 11:46:14 2014 +0300 +++ b/endpoint-exec/pom.xml Thu Sep 11 17:32:57 2014 +0300 @@ -93,6 +93,45 @@ + + jdeb + org.vafer + 1.3 + + + package + + jdeb + + + false + + + ${project.build.directory}/strabon-endpoint-executable-${project.version}.jar + file + + perm + /usr/share/jdeb/lib + + + + ${basedir}/strabon-endpoint + file + + perm + /usr/local/bin + root + root + 755 + + + + + + + + + diff -r 7c0e94008b62 -r 8d50279a662c endpoint-exec/src/deb/control/control --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/endpoint-exec/src/deb/control/control Thu Sep 11 17:32:57 2014 +0300 @@ -0,0 +1,8 @@ +Package: Strabon +Version: 3.2.10 +Section: strabon-endpoint +Priority: optional +Architecture: all +Maintainer: Manolis Karpathiotakis , Kostis Kyzirakos , Charalambos Nikolaou , Konstantina Bereta , Georgios Garbis , Dimitrios Bilidas , Stella Giannakopoulou , Panayiotis Smeros , Kalliroi Dogani , Maria Karpathiotaki , Ioannis Vlachopoulos , Dimitrianos Savva , Georgios Stamoulis , Kanela Kaligosi +Description: Strabon endpoint executable +Distribution: Mozilla v2.0 Public Liscence diff -r 7c0e94008b62 -r 8d50279a662c endpoint-exec/strabon-endpoint --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/endpoint-exec/strabon-endpoint Thu Sep 11 17:32:57 2014 +0300 @@ -0,0 +1,4 @@ +#!/bin/bash + +java -jar /usr/share/jdeb/lib/strabon-endpoint-executable-3.2.10-SNAPSHOT.jar "$@" + diff -r 7c0e94008b62 -r 8d50279a662c pom.xml --- a/pom.xml Wed Sep 10 11:46:14 2014 +0300 +++ b/pom.xml Thu Sep 11 17:32:57 2014 +0300 @@ -745,6 +745,44 @@ ${skipTests} + + @@ -759,6 +797,7 @@ utf8 +