diff --git a/makefile b/makefile
index 1c45c5baab2213d4d52e33f68af06cdb91e98fcd..d15046187deb7791521995544090947800f7b8a1 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 d845abda2037527acabbc4628365149b3ff63918..ec26ca3ac733a3a8f41f3c4c23f58d701f0433e9 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>