Skip to content

Commit a6b4715

Browse files
committed
docs: add maven(e.g. running test) config for Java 17
1 parent 6203c1e commit a6b4715

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,22 @@ If you use DCM under Java 17+, add below Java options:
230230
--add-opens java.base/sun.net=ALL-UNNAMED
231231
```
232232

233+
If you use `maven`(e.g. running test), add below config:
234+
235+
```xml
236+
<profiles>
237+
<profile>
238+
<id>add-java-open-options-for-jdk17</id>
239+
<activation>
240+
<jdk>[17,)</jdk>
241+
</activation>
242+
<properties>
243+
<argLine>--add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/sun.net=ALL-UNNAMED</argLine>
244+
</properties>
245+
</profile>
246+
</profiles>
247+
```
248+
233249
#### Domain name case
234250

235251
The domain name is not case-sensitive, and the domain name may be converted to lower case uniformly before entering the DNS Cache.

0 commit comments

Comments
 (0)