allow building a full pubsub demo client JAR by executing 'mvn assembly:single'
diff --git a/examples/pubsub-client/pom.xml b/examples/pubsub-client/pom.xml
index c57c09d..7936baf 100644
--- a/examples/pubsub-client/pom.xml
+++ b/examples/pubsub-client/pom.xml
@@ -24,11 +24,11 @@
<version>0.8-SNAPSHOT</version>
</parent>
- <groupId>org.apache.vysper.examples</groupId>
<artifactId>vysper-pubsub-demo</artifactId>
<name>Apache Vysper Publish-Subscribe demo</name>
<version>0.8-SNAPSHOT</version>
-
+ <packaging>jar</packaging>
+
<dependencies>
<dependency>
<groupId>jivesoftware</groupId>
@@ -62,6 +62,33 @@
</archive>
</configuration>
</plugin>
+ <plugin>
+ <!-- execute with 'mvn assembly:single' -->
+ <artifactId>maven-assembly-plugin</artifactId>
+ <configuration>
+ <descriptorRefs>
+ <descriptorRef>jar-with-dependencies</descriptorRef>
+ </descriptorRefs>
+ <archive>
+ <manifest>
+ <mainClass>org.apache.vysper.demo.pubsub.client.PubsubClientGUI</mainClass>
+ </manifest>
+ </archive>
+ <finalName>pubsub-client-full</finalName>
+ <appendAssemblyId>true</appendAssemblyId>
+ </configuration>
+ <executions>
+ <execution>
+ <id>make-assembly</id>
+ <!-- this is used for inheritance merges -->
+ <phase>package</phase>
+ <!-- bind to the packaging phase -->
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</pluginManagement>
</build>