Skip to content

Commit 7c19d07

Browse files
antoinesdaalmiray
authored andcommitted
Change in plugin configuration and order of declared modules to obtain a fonctionning jlink image
1 parent 9bc4156 commit 7c19d07

1 file changed

Lines changed: 21 additions & 52 deletions

File tree

integrationtest/vert.x/pom.xml

Lines changed: 21 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@
8787
<overwriteExistingFiles>true</overwriteExistingFiles>
8888
<failOnWarning>false</failOnWarning>
8989
<jdepsExtraArgs>
90+
<arg>--module-path</arg>
91+
<arg>${project.build.directory}/modules</arg>
9092
<arg>--ignore-missing-deps</arg>
9193
</jdepsExtraArgs>
9294
<modules>
@@ -138,28 +140,28 @@
138140
<module>
139141
<artifact>
140142
<groupId>io.netty</groupId>
141-
<artifactId>netty-codec</artifactId>
143+
<artifactId>netty-resolver</artifactId>
142144
</artifact>
143145
<moduleInfo>
144-
<name>io.netty.codec</name>
146+
<name>io.netty.resolver</name>
145147
</moduleInfo>
146148
</module>
147149
<module>
148150
<artifact>
149151
<groupId>io.netty</groupId>
150-
<artifactId>netty-resolver</artifactId>
152+
<artifactId>netty-transport</artifactId>
151153
</artifact>
152154
<moduleInfo>
153-
<name>io.netty.resolver</name>
155+
<name>io.netty.transport</name>
154156
</moduleInfo>
155157
</module>
156158
<module>
157159
<artifact>
158160
<groupId>io.netty</groupId>
159-
<artifactId>netty-transport</artifactId>
161+
<artifactId>netty-codec</artifactId>
160162
</artifact>
161163
<moduleInfo>
162-
<name>io.netty.transport</name>
164+
<name>io.netty.codec</name>
163165
</moduleInfo>
164166
</module>
165167
<module>
@@ -204,48 +206,27 @@
204206
<groupId>io.netty</groupId>
205207
<artifactId>netty-transport-native-epoll</artifactId>
206208
</artifact>
207-
<!-- TODO <moduleInfo>, needs handling of native unix-common dependency -->
208-
<moduleInfoSource>
209-
module io.netty.channel.epoll {
210-
requires io.netty.buffer;
211-
requires io.netty.channel.unix;
212-
requires io.netty.common;
213-
requires io.netty.transport;
214-
exports io.netty.channel.epoll;
215-
}
216-
</moduleInfoSource>
209+
<moduleInfo>
210+
<name>io.netty.channel.epoll</name>
211+
</moduleInfo>
217212
</module>
218213
<module>
219214
<artifact>
220215
<groupId>io.netty</groupId>
221216
<artifactId>netty-transport-native-kqueue</artifactId>
222217
</artifact>
223-
<!-- TODO <moduleInfo>, needs handling of native unix-common dependency -->
224-
<moduleInfoSource>
225-
module io.netty.channel.kqueue {
226-
exports io.netty.channel.kqueue;
227-
}
228-
</moduleInfoSource>
218+
<moduleInfo>
219+
<name>io.netty.channel.kqueue</name>
220+
</moduleInfo>
229221
</module>
230222
<module>
231223
<artifact>
232224
<groupId>io.netty</groupId>
233225
<artifactId>netty-handler</artifactId>
234226
</artifact>
235-
<moduleInfoSource>
236-
module io.netty.handler {
237-
exports io.netty.handler.flow;
238-
exports io.netty.handler.flush;
239-
exports io.netty.handler.ipfilter;
240-
exports io.netty.handler.logging;
241-
exports io.netty.handler.ssl;
242-
exports io.netty.handler.ssl.ocsp;
243-
exports io.netty.handler.ssl.util;
244-
exports io.netty.handler.stream;
245-
exports io.netty.handler.timeout;
246-
exports io.netty.handler.traffic;
247-
}
248-
</moduleInfoSource>
227+
<moduleInfo>
228+
<name>io.netty.handler</name>
229+
</moduleInfo>
249230
</module>
250231
<module>
251232
<artifact>
@@ -281,16 +262,6 @@
281262
</artifact>
282263
<moduleInfo>
283264
<name>io.vertx.core</name>
284-
<requires>
285-
static log4j.api;
286-
static log4j;
287-
static slf4j.api;
288-
*;
289-
</requires>
290-
<exports>
291-
!*impl*;
292-
*;
293-
</exports>
294265
<uses>
295266
io.vertx.core.spi.VertxFactory;
296267
io.vertx.core.spi.VerticleFactory;
@@ -302,12 +273,10 @@
302273
</modules>
303274
<module>
304275
<mainClass>com.example.HelloWorldServer</mainClass>
305-
<moduleInfo>
306-
<name>com.example</name>
307-
<exports>
308-
com.example to io.vertx.core;
309-
</exports>
310-
</moduleInfo>
276+
<moduleInfoSource>open module com.example {
277+
requires transitive io.vertx.core;
278+
}
279+
</moduleInfoSource>
311280
</module>
312281
</configuration>
313282
<goals>

0 commit comments

Comments
 (0)