-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
127 lines (124 loc) · 6.21 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?xml version="1.0" encoding="UTF-8"?>
<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>com.aft</groupId>
<artifactId>SocketTester</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jdk.version>1.8</jdk.version>
<maven-compiler.version>3.2</maven-compiler.version>
</properties>
<build>
<plugins>
<!-- This plugin compiles the code -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler.version}</version>
<configuration>
<source>${jdk.version}</source>
<target>${jdk.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<finalName>${project.artifactId}-client</finalName>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.aft.socket.tcp.SocketClient</mainClass>
</transformer>
</transformers>
</configuration>
<id>shade-client</id>
<goals>
<goal>shade</goal>
</goals>
</execution>
<execution>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<finalName>${project.artifactId}-server</finalName>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.aft.socket.tcp.SocketServer</mainClass>
</transformer>
</transformers>
</configuration>
<id>shade-server</id>
<goals>
<goal>shade</goal>
</goals>
</execution>
<execution>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<finalName>${project.artifactId}-udpClient</finalName>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.aft.socket.udp.UDPSocketClient</mainClass>
</transformer>
</transformers>
</configuration>
<id>shade-udp-client</id>
<goals>
<goal>shade</goal>
</goals>
</execution>
<execution>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<finalName>${project.artifactId}-udpServer</finalName>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.aft.socket.udp.UDPSocketServer</mainClass>
</transformer>
</transformers>
</configuration>
<id>shade-udp-server</id>
<goals>
<goal>shade</goal>
</goals>
</execution>
<execution>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<finalName>${project.artifactId}-udpPingPong</finalName>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.aft.socket.udp.UDPPingPong</mainClass>
</transformer>
</transformers>
</configuration>
<id>shade-udp-pingpong</id>
<goals>
<goal>shade</goal>
</goals>
</execution>
<execution>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<finalName>${project.artifactId}-udpPingPongServer</finalName>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.aft.socket.udp.UDPPingPongServer</mainClass>
</transformer>
</transformers>
</configuration>
<id>shade-udp-pingpong-server</id>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>