From a849fbad448742cc61231420c70d9f3eef4c7173 Mon Sep 17 00:00:00 2001 From: Daniel <daniel@harvey> Date: Wed, 15 May 2019 16:15:31 +0200 Subject: [PATCH] WIP: Standalone jar. For issue #24 --- makefile | 4 ++++ pom.xml | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/makefile b/makefile index 1c45c5ba..d1504618 100644 --- a/makefile +++ b/makefile @@ -35,6 +35,10 @@ run-debug: compile compile: easy-units mvn compile +# Compile into a standalone jar file +jar: compile + mvn assembly:single + start-portforwarding: sudo iptables -t nat -N CAOSDB sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -g CAOSDB diff --git a/pom.xml b/pom.xml index d845abda..ec26ca3a 100644 --- a/pom.xml +++ b/pom.xml @@ -204,6 +204,14 @@ </manifest> </archive> </configuration> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>single</goal> <!-- Run with: mvn assembly:single --> + </goals> + </execution> + </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> -- GitLab