From 611e2062ea5580b9129427cffcb1059063266879 Mon Sep 17 00:00:00 2001 From: Ramanathan Date: Thu, 7 May 2026 23:56:01 +0530 Subject: [PATCH 1/2] fix: update pom.xml for Windows JLink build configuration --- log4j-samples-jlink/pom.xml | 98 ++++++++++--------------------------- 1 file changed, 27 insertions(+), 71 deletions(-) diff --git a/log4j-samples-jlink/pom.xml b/log4j-samples-jlink/pom.xml index 1b80b60..b04dec1 100644 --- a/log4j-samples-jlink/pom.xml +++ b/log4j-samples-jlink/pom.xml @@ -16,9 +16,7 @@ ~ limitations under the License. --> - 4.0.0 - org.apache.logging.log4j.samples log4j-samples @@ -30,129 +28,87 @@ Apache Log4j Samples: JLink custom JRE - 3.2.0 - - - - - - ${project.build.directory}/maven-jlink/default/bin/${project.artifactId}${jlink.launcher.suffix} + + ${project.build.directory}/maven-jlink/default/bin/log4j-samples-jlink + + ${jlink.launcher.path} + + - org.apache.logging.log4j log4j-api - org.apache.logging.log4j log4j-core + runtime - org.apache.logging.log4j.samples log4j-samples-configuration runtime - - org.junit.jupiter junit-jupiter test - - org.apache.maven.plugins - maven-antrun-plugin - - - prepare-integration-test-logs - - run - - pre-integration-test - - - - - - - - + maven-jlink-plugin + ${maven-jlink-plugin.version} + true + + log4j-samples-jlink=org.apache.logging.log4j.samples.jlink/org.apache.logging.log4j.samples.jlink.Main + org.codehaus.mojo exec-maven-plugin - ${exec-maven-plugin.version} run-custom-jlink-launcher exec - integration-test - - ${jlink.launcher.path} - ${project.build.directory}/logs/out.log + verify + + ${skipTests} + ${exec.launcher.cmd} + + ${exec.launcher.arg0} + ${exec.launcher.arg1} + + ${project.basedir} - - - org.apache.maven.plugins - maven-failsafe-plugin - - - integration-test - - integration-test - verify - - - - **/StandardIT.class - - - - - - - - org.apache.maven.plugins - maven-jlink-plugin - ${maven-jlink-plugin.version} - true - - log4j-samples-jlink=org.apache.logging.log4j.samples.jlink/org.apache.logging.log4j.samples.jlink.Main - - - - windows + windows-setup - Windows + windows - .exe + cmd + /c + ${jlink.launcher.path}.bat - From 6e6505c9b0e51fcc853376a4a16744c7b7a4a651 Mon Sep 17 00:00:00 2001 From: Ramanathan Date: Tue, 19 May 2026 12:16:36 +0530 Subject: [PATCH 2/2] fix: add version for exec-maven-plugin in pom.xml --- log4j-samples-jlink/pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/log4j-samples-jlink/pom.xml b/log4j-samples-jlink/pom.xml index b04dec1..975fea8 100644 --- a/log4j-samples-jlink/pom.xml +++ b/log4j-samples-jlink/pom.xml @@ -74,6 +74,7 @@ org.codehaus.mojo exec-maven-plugin + ${exec-maven-plugin.version} run-custom-jlink-launcher