diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml
index e8f859d..bf5b357 100644
--- a/.github/workflows/maven-publish.yml
+++ b/.github/workflows/maven-publish.yml
@@ -44,8 +44,6 @@ jobs:
run: |
echo "REVISION: $REVISION"
- export MAVEN_OPTS="--enable-preview --add-modules jdk.incubator.foreign -Dforeign.restricted=permit --add-opens=java.base/jdk.internal.misc=ALL-UNNAMED"
-
mvn -B -Drevision=${REVISION} clean deploy
env:
MAVEN_USERNAME: ${{ secrets.MCHV_USERNAME }}
diff --git a/pom.xml b/pom.xml
index 5a60e6e..da2a0b6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -13,6 +13,7 @@
UTF-8
0-SNAPSHOT
+ --enable-preview --add-modules jdk.incubator.foreign -Dforeign.restricted=permit --add-opens=java.base/jdk.internal.misc=ALL-UNNAMED
@@ -472,6 +473,7 @@
io.soabase.recordbuilder.processor.RecordBuilderProcessor
false
+ ${jvm.options}
@@ -503,6 +505,9 @@
5.8.0-M1
+
+ ${jvm.options}
+