You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: jpms-examples/README.adoc
+59-13Lines changed: 59 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,6 @@ You can run tests from IDE or from an application image generated by https://dev
7
7
An application image is generated by the https://maven.apache.org/plugins/maven-jlink-plugin/[Apache Maven JLink Plugin] when
8
8
packaging the project with Maven (notice the jlink package in `pom.xml`), you can find the image in `target/maven-jlink/default`
9
9
10
-
NOTE: the `io.netty.resolver.dns.classes.macos` and `io.netty.resolver.dns.macos.osx.aarch_64` are only useful on Mac/M1
11
-
12
10
WARNING: Running these examples from your IDE might not work sometimes due to JPMS / IDE discrepancies. We recommend loading this Maven module `io.vertx:jpms-examples` directly in your IDE instead of `io.vertx:vertx-examples`.
13
11
14
12
== HTTP/1.1 Server
@@ -17,24 +15,58 @@ A simple link:src/main/java/io/vertx/example/jpms/http/Server.java[HTTP/1.1 serv
17
15
18
16
You can run the server in your IDE and then `curl http://localhost:8080`.
OSX can use an optional native DNS resolver that improves DNS resolution.
35
+
36
+
This is visible when running jlink with the following log:
37
+
38
+
```shell
39
+
Mar 24, 2026 11:17:36 AM io.netty.resolver.dns.DnsServerAddressStreamProviders <clinit>
40
+
WARNING: Can not find io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider in the classpath, fallback to system defaults. This may result in incorrect DNS resolutions on MacOS. Check whether you have a dependency on 'io.netty:netty-resolver-dns-native-macos'
41
+
```
42
+
43
+
This can be resolved by adding the following runtime option `-add-modules io.netty.resolver.dns.classes.macos,io.netty.resolver.dns.macos.osx.aarch_64`, here is an example for M1 architecture:
@@ -63,14 +102,21 @@ To run this example, you need to set the env variable `TEMPORARILY_DISABLE_PROTO
63
102
64
103
You can run the server in your IDE and then `grpcurl -plaintext -d '{"name":"Julien"}' -proto src/main/proto/helloworld.proto localhost:8080 helloworld.Greeter/SayHello`.
65
104
66
-
You can also run the application image (Mac/M1):
105
+
You can also run the application image:
67
106
68
107
[source,shell]
69
108
----
70
109
# Required because we use 4.26.1-jpms dependency
71
-
export TEMPORARILY_DISABLE_PROTOBUF_VERSION_CHECK=true # yes there is a typo ...
110
+
export TEMORARILY_DISABLE_PROTOBUF_VERSION_CHECK=true # yes there is a typo ...
0 commit comments