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:
Norman Maurer 2017-02-16 16:57:28 +01:00
parent ddd0e2f184
commit c5324ea48c
5 changed files with 13 additions and 3 deletions

View File

@ -26,6 +26,11 @@
<artifactId>netty-handler-proxy</artifactId> <artifactId>netty-handler-proxy</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/Proxy</name> <name>Netty/Handler/Proxy</name>
<dependencies> <dependencies>

View File

@ -81,6 +81,10 @@
<!-- https://issues.apache.org/jira/browse/MSHADE-242 --> <!-- https://issues.apache.org/jira/browse/MSHADE-242 -->
<!-- https://github.com/netty/netty/issues/6100 --> <!-- https://github.com/netty/netty/issues/6100 -->
<asm.version>6.0_ALPHA</asm.version> <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> </properties>
<activation> <activation>
<jdk>9</jdk> <jdk>9</jdk>
@ -248,6 +252,8 @@
<log4j2.version>2.6.2</log4j2.version> <log4j2.version>2.6.2</log4j2.version>
<asm.version>5.1</asm.version> <asm.version>5.1</asm.version>
<testJavaHome>${env.JAVA_HOME}</testJavaHome> <testJavaHome>${env.JAVA_HOME}</testJavaHome>
<skipOsgiTestsuite>false</skipOsgiTestsuite>
<skipAutobahnTestsuite>false</skipAutobahnTestsuite>
</properties> </properties>
<modules> <modules>

View File

@ -30,7 +30,7 @@
<properties> <properties>
<exam.version>4.9.1</exam.version> <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> </properties>
<profiles> <profiles>

View File

@ -87,7 +87,6 @@
</dependencies> </dependencies>
<properties> <properties>
<skipAutobahnTestsuite>false</skipAutobahnTestsuite>
<!-- Needed for SSL tests as these use the SelfSignedCertificate --> <!-- Needed for SSL tests as these use the SelfSignedCertificate -->
<argLine.java9.extras>--add-exports java.base/sun.security.x509=ALL-UNNAMED</argLine.java9.extras> <argLine.java9.extras>--add-exports java.base/sun.security.x509=ALL-UNNAMED</argLine.java9.extras>
</properties> </properties>

View File

@ -29,7 +29,7 @@
<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 --> <!-- 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> </properties>
<dependencies> <dependencies>