From 03570d51761ce83bd77fb0eb4e2590fcf3b0b593 Mon Sep 17 00:00:00 2001 From: Anthony Lofton Date: Tue, 10 Dec 2024 11:54:39 -0600 Subject: [PATCH] Various Updates and Enhancements - Updated `maven.compiler` to 21 - Updated README.md to use `BP_MAVEN_ADDITIONAL_BUILD_ARGUMENTS` instead of BP_MAVEN_BUILD_ARGUMENTS. This change allows the default values in the build arguments to be used which includes the following: - `-Dmaven.test.skip=true --no-transfer-progress package` - Updated README.md to use Java 21 - Updated README.md the `BP_NATIVE_IMAGE_BUILT_ARTIFACT` to use a wild card for the `runner.jar` --- java/native-image/quarkus-native-image-maven/README.md | 6 +++--- java/native-image/quarkus-native-image-maven/pom.xml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java/native-image/quarkus-native-image-maven/README.md b/java/native-image/quarkus-native-image-maven/README.md index 7c6e1977..4f7f6b03 100644 --- a/java/native-image/quarkus-native-image-maven/README.md +++ b/java/native-image/quarkus-native-image-maven/README.md @@ -8,11 +8,11 @@ pack build applications/quarkus-native \ --builder paketobuildpacks/builder-jammy-tiny \ --env BP_NATIVE_IMAGE=true \ - --env BP_MAVEN_BUILD_ARGUMENTS="-Dquarkus.package.type=native-sources -Dmaven.test.skip=true package" \ + --env BP_MAVEN_ADDITIONAL_BUILD_ARGUMENTS="-Dquarkus.package.type=native-sources" \ --env BP_MAVEN_BUILT_ARTIFACT="target/native-sources" \ --env BP_NATIVE_IMAGE_BUILD_ARGUMENTS_FILE="native-sources/native-image.args" \ - --env BP_NATIVE_IMAGE_BUILT_ARTIFACT="native-sources/getting-started-*-runner.jar" \ - --env BP_JVM_VERSION=17 + --env BP_NATIVE_IMAGE_BUILT_ARTIFACT="native-sources/*-runner.jar" \ + --env BP_JVM_VERSION=21 ``` ## Running diff --git a/java/native-image/quarkus-native-image-maven/pom.xml b/java/native-image/quarkus-native-image-maven/pom.xml index 821a8c21..f4358698 100644 --- a/java/native-image/quarkus-native-image-maven/pom.xml +++ b/java/native-image/quarkus-native-image-maven/pom.xml @@ -13,8 +13,8 @@ 3.13.0 3.5.2 UTF-8 - 11 - 11 + 21 + 21 true