Use the correct arguments when run with jdk9
Motivation: We need to pass special arguments to run with jdk9 as otherwise some tests will not be able to run. Modifications: Allow to define extra arguments when running with jdk9 Result: Tests pass with jdk9
This commit is contained in:
parent
c12908d608
commit
5728e0eb2c
@ -26,6 +26,11 @@
|
|||||||
<artifactId>netty-handler</artifactId>
|
<artifactId>netty-handler</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<!-- Needed for SelfSignedCertificate -->
|
||||||
|
<argLine.java9.extras>--add-exports java.base/sun.security.x509=ALL-UNNAMED</argLine.java9.extras>
|
||||||
|
</properties>
|
||||||
|
|
||||||
<name>Netty/Handler</name>
|
<name>Netty/Handler</name>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
3
pom.xml
3
pom.xml
@ -72,8 +72,9 @@
|
|||||||
<profile>
|
<profile>
|
||||||
<id>java9</id>
|
<id>java9</id>
|
||||||
<properties>
|
<properties>
|
||||||
|
<argLine.java9.extras></argLine.java9.extras>
|
||||||
<!-- Export some stuff which is used during our tests -->
|
<!-- Export some stuff which is used during our tests -->
|
||||||
<argLine.java9>--add-modules java.xml.bind --add-exports java.base/sun.security.x509=ALL-UNNAMED</argLine.java9>
|
<argLine.java9>--add-modules java.xml.bind ${argLine.java9.extras}</argLine.java9>
|
||||||
<!-- Not use alpn agent as Java9 supports alpn out of the box -->
|
<!-- Not use alpn agent as Java9 supports alpn out of the box -->
|
||||||
<argLine.alpnAgent />
|
<argLine.alpnAgent />
|
||||||
<!-- This is needed as earlier ASM versions not support java9 -->
|
<!-- This is needed as earlier ASM versions not support java9 -->
|
||||||
|
@ -88,6 +88,8 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<skipAutobahnTestsuite>false</skipAutobahnTestsuite>
|
<skipAutobahnTestsuite>false</skipAutobahnTestsuite>
|
||||||
|
<!-- Needed for SSL tests as these use the SelfSignedCertificate -->
|
||||||
|
<argLine.java9.extras>--add-exports java.base/sun.security.x509=ALL-UNNAMED</argLine.java9.extras>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
|
@ -28,6 +28,8 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<jni.compiler.args.ldflags>LDFLAGS=-Wl,--no-as-needed -lrt</jni.compiler.args.ldflags>
|
<jni.compiler.args.ldflags>LDFLAGS=-Wl,--no-as-needed -lrt</jni.compiler.args.ldflags>
|
||||||
|
<!-- Needed by the native transport as we need the memoryAddress of the ByteBuffer -->
|
||||||
|
<argLine.java9.extras>--add-opens=java.base/java.nio=ALL-UNNAMED</argLine.java9.extras>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
Loading…
Reference in New Issue
Block a user