diff options
author | ritchie <ritchie@gmx.at> | 2015-07-19 07:31:50 +0200 |
---|---|---|
committer | ritchie <ritchie@gmx.at> | 2015-07-19 07:31:50 +0200 |
commit | 23529ea639a36e83142e987ee4239549419a4417 (patch) | |
tree | b49cd5c1ab6d7d89d40791a0b90941e72dbc6dc2 | |
parent | e202df499a2181477983968eeaded731d44a92f4 (diff) | |
download | nanohttpd-23529ea639a36e83142e987ee4239549419a4417.tar.gz |
extra jar with echo server #210
-rw-r--r-- | websocket/pom.xml | 44 |
1 files changed, 39 insertions, 5 deletions
diff --git a/websocket/pom.xml b/websocket/pom.xml index 4cc2de2..8c7aee4 100644 --- a/websocket/pom.xml +++ b/websocket/pom.xml @@ -9,19 +9,53 @@ <artifactId>nanohttpd-websocket</artifactId> <packaging>jar</packaging> <name>NanoHttpd-Websocket</name> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <executions> + <execution> + <id>default-jar</id> + <configuration> + <excludes> + <exclude>**/samples/**</exclude> + </excludes> + </configuration> + </execution> + <execution> + <id>echo-jar</id> + <phase>package</phase> + <goals> + <goal>jar</goal> + </goals> + <configuration> + <classifier>echo</classifier> + <archive> + <manifest> + <addClasspath>true</addClasspath> + <mainClass>fi.iki.elonen.samples.echo.EchoSocketSample</mainClass> + </manifest> + </archive> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> <dependencies> <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>nanohttpd</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-all</artifactId> <version>1.9.5</version> <scope>test</scope> </dependency> <dependency> - <groupId>${project.groupId}</groupId> - <artifactId>nanohttpd</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> <groupId>org.eclipse.jetty.websocket</groupId> <artifactId>websocket-client</artifactId> <version>9.3.0.M2</version> |