add profile native

This commit is contained in:
dingz 2023-10-27 15:08:13 +08:00
parent ffc3b0c792
commit 4da7049cb5
1 changed files with 2 additions and 4 deletions

View File

@ -128,8 +128,7 @@
<builder>paketobuildpacks/builder-jammy-tiny</builder> <builder>paketobuildpacks/builder-jammy-tiny</builder>
<buildpacks> <buildpacks>
<buildpack>gcr.io/paketo-buildpacks/graalvm</buildpack> <buildpack>gcr.io/paketo-buildpacks/graalvm</buildpack>
<buildpack> <buildpack>gcr.io/paketo-buildpacks/java-native-image</buildpack>
gcr.io/paketo-buildpacks/java-native-image</buildpack>
</buildpacks> </buildpacks>
<env> <env>
<BP_NATIVE_IMAGE>true</BP_NATIVE_IMAGE> <BP_NATIVE_IMAGE>true</BP_NATIVE_IMAGE>
@ -151,8 +150,7 @@
<groupId>org.graalvm.buildtools</groupId> <groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId> <artifactId>native-maven-plugin</artifactId>
<configuration> <configuration>
<classesDirectory> <classesDirectory>${project.build.outputDirectory}</classesDirectory>
${project.build.outputDirectory}</classesDirectory>
<metadataRepository> <metadataRepository>
<enabled>true</enabled> <enabled>true</enabled>
</metadataRepository> </metadataRepository>