aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Brouillard <matthieu@brouillard.fr>2013-09-04 16:38:12 +0200
committerMatthieu Brouillard <matthieu@brouillard.fr>2013-09-04 16:38:12 +0200
commita347cdc305fa083386df992dfffc65ffd7a3fd00 (patch)
treef52b61c6ac8b8f0ae5e8482b30c6bf1a7bf0f007
parent5820f308631a825a05feddddd0aafb962f272b9b (diff)
downloadnanohttpd-a347cdc305fa083386df992dfffc65ffd7a3fd00.tar.gz
add jar-with-dependency assembly so that an fully executable jar becomes available.
-rw-r--r--webserver/pom.xml27
1 files changed, 25 insertions, 2 deletions
diff --git a/webserver/pom.xml b/webserver/pom.xml
index 8996e15..a6f8414 100644
--- a/webserver/pom.xml
+++ b/webserver/pom.xml
@@ -1,5 +1,5 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>fi.iki.elonen</groupId>
@@ -65,6 +65,29 @@
<target>1.6</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2-beta-5</version>
+ <configuration>
+ <descriptorRefs>
+ <descriptorRef>jar-with-dependencies</descriptorRef>
+ </descriptorRefs>
+ <archive>
+ <manifest>
+ <mainClass>fi.iki.elonen.SimpleWebServer</mainClass>
+ </manifest>
+ </archive>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</project>