From 9579e000fe358206d3a1f27ff6cfd5462ab826d0 Mon Sep 17 00:00:00 2001 From: Raimund Klein <770876+Chessray@users.noreply.github.com> Date: Tue, 16 Dec 2025 10:20:45 +0000 Subject: [PATCH 1/5] How to build with Java 9+ - skip javah and configure compiler plugin accordingly --- pom.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index a408199..9410ece 100644 --- a/pom.xml +++ b/pom.xml @@ -82,6 +82,10 @@ ${java.source.version} ${java.target.version} ${project.build.sourceEncoding} + + -h + ${project.build.directory}/nar/javah-include + @@ -103,6 +107,9 @@ + + true + @@ -230,4 +237,4 @@ - \ No newline at end of file + From 3fd982ddffdd72a528b9509234a9ad71b699dfa8 Mon Sep 17 00:00:00 2001 From: Raimund Klein <770876+Chessray@users.noreply.github.com> Date: Tue, 16 Dec 2025 10:25:30 +0000 Subject: [PATCH 2/5] How to build with Java 9+ - skip javah and configure compiler plugin accordingly --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 9410ece..6318456 100644 --- a/pom.xml +++ b/pom.xml @@ -45,8 +45,8 @@ - 1.8 - 1.8 + 25 + 25 UTF-8 1.36 From 0644f302e975c055db288ffc9ba55abd85d31cac Mon Sep 17 00:00:00 2001 From: Raimund Klein <770876+Chessray@users.noreply.github.com> Date: Tue, 16 Dec 2025 10:58:37 +0000 Subject: [PATCH 3/5] How to build with Java 9+ - skip javah and configure compiler plugin accordingly --- pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/pom.xml b/pom.xml index 6318456..b85473f 100644 --- a/pom.xml +++ b/pom.xml @@ -83,6 +83,7 @@ ${java.target.version} ${project.build.sourceEncoding} + -proc:full -h ${project.build.directory}/nar/javah-include From 362079092bbf1921da8f3f849e8a5a1d8a47a4f5 Mon Sep 17 00:00:00 2001 From: Raimund Klein <770876+Chessray@users.noreply.github.com> Date: Wed, 17 Dec 2025 09:25:37 +0000 Subject: [PATCH 4/5] Employ profiles in order to keep track of NAR Plugin changes --- pom.xml | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 78 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index b85473f..1ccadab 100644 --- a/pom.xml +++ b/pom.xml @@ -45,8 +45,6 @@ - 25 - 25 UTF-8 1.36 @@ -82,11 +80,6 @@ ${java.source.version} ${java.target.version} ${project.build.sourceEncoding} - - -proc:full - -h - ${project.build.directory}/nar/javah-include - @@ -108,9 +101,6 @@ - - true - @@ -238,4 +228,82 @@ + + + java1.8 + + 1.8 + + + 1.8 + 1.8 + + + + java21 + + 21 + + + 21 + 21 + + + + + maven-compiler-plugin + + + -proc:full + -h + ${project.build.directory}/nar/javah-include + + + + + com.github.maven-nar + nar-maven-plugin + + + true + + + + + + + + java25 + + 25 + + + 25 + 25 + + + + + maven-compiler-plugin + + + -proc:full + -h + ${project.build.directory}/nar/javah-include + + + + + com.github.maven-nar + nar-maven-plugin + + + true + + + + + + + From 9e67fc727b0ba6dabb398f6fad2c95824d002229 Mon Sep 17 00:00:00 2001 From: Raimund Klein <770876+Chessray@users.noreply.github.com> Date: Wed, 17 Dec 2025 10:11:43 +0000 Subject: [PATCH 5/5] Employ profiles in order to keep track of NAR Plugin changes --- pom.xml | 41 ++++++++++++----------------------------- 1 file changed, 12 insertions(+), 29 deletions(-) diff --git a/pom.xml b/pom.xml index 1ccadab..f67ad03 100644 --- a/pom.xml +++ b/pom.xml @@ -240,14 +240,10 @@ - java21 + java9+ - 21 + [9,) - - 21 - 21 - @@ -272,6 +268,16 @@ + + java21 + + 21 + + + 21 + 21 + + java25 @@ -281,29 +287,6 @@ 25 25 - - - - maven-compiler-plugin - - - -proc:full - -h - ${project.build.directory}/nar/javah-include - - - - - com.github.maven-nar - nar-maven-plugin - - - true - - - - -