-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
215 lines (208 loc) · 8.84 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
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>tr.com.orsan.academy.learning.netty.sbe</groupId>
<artifactId>sbe-netty-tcp-example</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<SBE_LIB_VERSION>1.27.0</SBE_LIB_VERSION>
</properties>
<dependencies>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId> <!-- Use 'netty5-all' for 5.0 -->
<version>4.1.86.Final</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-handler</artifactId> <!-- Use 'netty5-all' for 5.0 -->
<version>4.1.86.Final</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-transport</artifactId> <!-- Use 'netty5-all' for 5.0 -->
<version>4.1.86.Final</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.kaitai</groupId>
<artifactId>kaitai-struct-runtime</artifactId>
<version>0.10</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.17.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.17.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>uk.co.real-logic</groupId>
<artifactId>sbe-all</artifactId>
<version>${SBE_LIB_VERSION}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>name.valery1707.kaitai</groupId>
<artifactId>kaitai-maven-plugin</artifactId>
<version>0.1.6</version>
<configuration>
<url>
https://github.com/kaitai-io/kaitai_struct_compiler/releases/download/0.10/kaitai-struct-compiler-0.10.zip
</url>
<overwrite>true</overwrite>
<packageName>tr.com.orsan.academy.learning.netty.kaitai.protocol</packageName>
<output>${project.build.directory}/kaitai/generated-sources/</output>
</configuration>
<executions>
<execution>
<id>generate</id>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.5.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.14.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>add-source</id>
<phase>process-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${project.build.directory}/sbe/generated-sources/</source>
<source>${project.build.directory}/kaitai/generated-sources/</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.1.0</version>
<dependencies>
<dependency>
<groupId>uk.co.real-logic</groupId>
<artifactId>sbe-all</artifactId>
<version>${SBE_LIB_VERSION}</version>
</dependency>
</dependencies>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<executableDependency>
<groupId>uk.co.real-logic</groupId>
<artifactId>sbe-all</artifactId>
</executableDependency>
<mainClass>uk.co.real_logic.sbe.SbeTool</mainClass>
<arguments>
<argument>${project.basedir}/src/main/resources/sbe/example-schema.xml</argument>
</arguments>
<sourceRoot>${project.build.directory}/sbe/generated-sources/</sourceRoot>
<cleanupDaemonThreads>true</cleanupDaemonThreads>
<stopUnresponsiveDaemonThreads>true</stopUnresponsiveDaemonThreads>
<daemonThreadJoinTimeout>8000</daemonThreadJoinTimeout>
<systemProperties>
<systemProperty>
<key>sbe.output.dir</key>
<value>${project.build.directory}/sbe/generated-sources/</value>
</systemProperty>
<systemProperty>
<key>sbe.target.namespace</key>
<value>${project.groupId}.messages</value>
</systemProperty>
<systemProperty>
<key>sbe.decode.unknown.enum.values</key>
<value>true</value>
</systemProperty>
<systemProperty>
<key>sbe.xinclude.aware</key>
<value>true</value>
</systemProperty>
<systemProperty>
<key>sbe.generate.ir</key>
<value>false</value>
</systemProperty>
<systemProperty>
<key>sbe.target.language</key>
<value>Java</value>
</systemProperty>
<systemProperty>
<key>sbe.validation.stop.on.error</key>
<value>true</value>
</systemProperty>
<systemProperty>
<key>sbe.validation.warnings.fatal</key>
<value>true</value>
</systemProperty>
<systemProperty>
<key>sbe.validation.suppress.output</key>
<value>true</value>
</systemProperty>
</systemProperties>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources</directory>
</resource>
</resources>
</build>
<pluginRepositories>
<pluginRepository>
<id>oss.sonatype.org.snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>oss.sonatype.org.release</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
</project>