Skip to content

Commit f7ea535

Browse files
Add an assembly module, which packs the project into a zip and a tar
1 parent 01cca79 commit f7ea535

File tree

3 files changed

+71
-0
lines changed

3 files changed

+71
-0
lines changed

assembly/assembly.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
2+
<formats>
3+
<format>zip</format>
4+
<format>tar.gz</format>
5+
</formats>
6+
<files>
7+
<file>
8+
<source>../sampling-message-client/target/sampling-message-client-0.1-jar-with-dependencies.jar</source>
9+
<outputDirectory>./</outputDirectory>
10+
<destName>client.jar</destName>
11+
<lineEnding>keep</lineEnding>
12+
</file>
13+
<file>
14+
<source>../sampling-message-server/target/sampling-message-server-0.1-jar-with-dependencies.jar</source>
15+
<outputDirectory>./</outputDirectory>
16+
<destName>server.jar</destName>
17+
<lineEnding>keep</lineEnding>
18+
</file>
19+
</files>
20+
</assembly>

assembly/pom.xml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xmlns="http://maven.apache.org/POM/4.0.0"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<artifactId>assembly</artifactId>
8+
<version>0.1</version>
9+
<packaging>pom</packaging>
10+
11+
<parent>
12+
<groupId>de.dhbw.ravensburg.verteiltesysteme</groupId>
13+
<artifactId>sampling-message-service</artifactId>
14+
<version>0.1</version>
15+
</parent>
16+
17+
<build>
18+
<plugins>
19+
<plugin>
20+
<groupId>org.apache.maven.plugins</groupId>
21+
<artifactId>maven-assembly-plugin</artifactId>
22+
<configuration>
23+
<descriptor>assembly.xml</descriptor>
24+
<finalName>sampling-message-service</finalName>
25+
</configuration>
26+
<executions>
27+
<execution>
28+
<phase>package</phase>
29+
<goals>
30+
<goal>single</goal>
31+
</goals>
32+
</execution>
33+
</executions>
34+
</plugin>
35+
</plugins>
36+
</build>
37+
38+
<dependencies>
39+
<dependency>
40+
<groupId>de.dhbw.ravensburg.verteiltesysteme</groupId>
41+
<artifactId>sampling-message-server</artifactId>
42+
<version>0.1</version>
43+
</dependency>
44+
<dependency>
45+
<groupId>de.dhbw.ravensburg.verteiltesysteme</groupId>
46+
<artifactId>sampling-message-client</artifactId>
47+
<version>0.1</version>
48+
</dependency>
49+
</dependencies>
50+
</project>

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@
2121
<modules>
2222
<module>sampling-message-server</module>
2323
<module>sampling-message-client</module>
24+
<module>assembly</module>
2425
</modules>
2526
</project>

0 commit comments

Comments
 (0)