Make netty build work on Java9
Motivation:
We missed some stuff in 5728e0eb2c
and so the build failed on java9
Modifications:
- Add extra cmdline args when needed
- skip the autobahntestsuite as jython not works with java9
- skip the osgi testsuite as the maven plugin not works with java9
Result:
Build finally passed on java9
This commit is contained in:
parent
ddd0e2f184
commit
c5324ea48c
@ -26,6 +26,11 @@
|
||||
<artifactId>netty-handler-proxy</artifactId>
|
||||
<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/Proxy</name>
|
||||
|
||||
<dependencies>
|
||||
|
6
pom.xml
6
pom.xml
@ -81,6 +81,10 @@
|
||||
<!-- https://issues.apache.org/jira/browse/MSHADE-242 -->
|
||||
<!-- https://github.com/netty/netty/issues/6100 -->
|
||||
<asm.version>6.0_ALPHA</asm.version>
|
||||
<!-- Skip as maven plugin not works with Java9 yet -->
|
||||
<skipOsgiTestsuite>true</skipOsgiTestsuite>
|
||||
<!-- Skip as jython not works with Java9 yet -->
|
||||
<skipAutobahnTestsuite>true</skipAutobahnTestsuite>
|
||||
</properties>
|
||||
<activation>
|
||||
<jdk>9</jdk>
|
||||
@ -248,6 +252,8 @@
|
||||
<log4j2.version>2.6.2</log4j2.version>
|
||||
<asm.version>5.1</asm.version>
|
||||
<testJavaHome>${env.JAVA_HOME}</testJavaHome>
|
||||
<skipOsgiTestsuite>false</skipOsgiTestsuite>
|
||||
<skipAutobahnTestsuite>false</skipAutobahnTestsuite>
|
||||
</properties>
|
||||
|
||||
<modules>
|
||||
|
@ -30,7 +30,7 @@
|
||||
|
||||
<properties>
|
||||
<exam.version>4.9.1</exam.version>
|
||||
<skipOsgiTestsuite>false</skipOsgiTestsuite>
|
||||
<argLine.java9.extras>--add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.security=ALL-UNNAMED</argLine.java9.extras>
|
||||
</properties>
|
||||
|
||||
<profiles>
|
||||
|
@ -87,7 +87,6 @@
|
||||
</dependencies>
|
||||
|
||||
<properties>
|
||||
<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>
|
||||
|
@ -29,7 +29,7 @@
|
||||
<properties>
|
||||
<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>
|
||||
<argLine.java9.extras>--add-exports java.base/sun.security.x509=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED</argLine.java9.extras>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
Loading…
Reference in New Issue
Block a user