From 9e734e5e4ebffb1df2a4a5047dd1ea695596fe39 Mon Sep 17 00:00:00 2001 From: isudana Date: Wed, 20 May 2026 12:59:58 +0530 Subject: [PATCH] Fix JDK17 build issues --- modules/integration/pom.xml | 2 +- modules/transports/core/nhttp/pom.xml | 2 +- modules/transports/core/vfs/pom.xml | 2 +- modules/transports/optional/amqp/pom.xml | 4 +- modules/transports/optional/fix/pom.xml | 2 +- pom.xml | 57 +++++++++++++++++++++++- 6 files changed, 61 insertions(+), 8 deletions(-) diff --git a/modules/integration/pom.xml b/modules/integration/pom.xml index cddd88268..ae101bc94 100644 --- a/modules/integration/pom.xml +++ b/modules/integration/pom.xml @@ -292,7 +292,7 @@ ${maven.build.timestamp} - -Xms128m -Xmx384m -XX:MaxPermSize=128m + ${surefire.extra.argline} -Xms128m -Xmx384m diff --git a/pom.xml b/pom.xml index 641dd8061..a40ed4fc1 100644 --- a/pom.xml +++ b/pom.xml @@ -134,6 +134,58 @@ + + jdk17 + + [17,) + + + 1.9.21 + --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED + + + + + org.aspectj + aspectjrt + ${aspectj.version} + + + org.aspectj + aspectjweaver + ${aspectj.version} + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + true + + -J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED + -J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED + -J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.2 + + + + release @@ -281,7 +333,7 @@ maven-surefire-plugin 2.11 - -Xms128m -Xmx256m + ${surefire.extra.argline} -Xms128m -Xmx256m http://localhost:9000/services/MyService1 @@ -323,7 +375,7 @@ org.apache.maven.plugins maven-war-plugin - 2.1.1 + 3.3.2 org.codehaus.mojo @@ -1158,6 +1210,7 @@ of the maven-compiler-plugin as well as certain ant tasks executed using maven-antrun-plugin.--> 1.8 + ${project.version}