Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit 006824e

Browse files
committed
refactor: clean up pom.xml by removing unused GraalVM native-maven-plugin configuration
1 parent 95074d3 commit 006824e

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

pom.xml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,10 @@
102102
</exclude>
103103
</excludes>
104104
<image>
105-
<!-- The image name to build -->
106105
<name>noobdevsam/${project.artifactId}:${project.version}</name>
107-
<!-- Use the Paketo Tiny builder for smaller native images -->
108106
<builder>paketobuildpacks/builder-jammy-tiny</builder>
109-
<!-- Environment variables for the buildpack -->
110107
<env>
111108
<!-- Configure the buildpack to use Java 25 -->
112-
<BP_NATIVE_IMAGE>true</BP_NATIVE_IMAGE>
113109
<BP_JVM_VERSION>${java.version}</BP_JVM_VERSION>
114110
</env>
115111
</image>
@@ -136,19 +132,13 @@
136132
</configuration>
137133
</plugin>
138134

139-
<plugin>
140-
<groupId>org.graalvm.buildtools</groupId>
141-
<artifactId>native-maven-plugin</artifactId>
142-
<configuration>
143-
<buildArgs>
144-
<!-- Enable AWT support (needed for BufferedImage, ImageIO) -->
145-
<buildArg>-H:Features=org.graalvm.home.HomeFinderFeature</buildArg>
146-
<buildArg>--enable-url-protocols=http,https</buildArg>
147-
<!-- Include security services needed for AES and PBKDF2 -->
148-
<buildArg>--initialize-at-build-time=org.springframework.util.MimeTypeUtils</buildArg>
149-
</buildArgs>
150-
</configuration>
151-
</plugin>
135+
<!--
136+
Enable this only if local native image support is needed. Use Liberica NIK JDK for building native image locally.
137+
-->
138+
<!-- <plugin>-->
139+
<!-- <groupId>org.graalvm.buildtools</groupId>-->
140+
<!-- <artifactId>native-maven-plugin</artifactId>-->
141+
<!-- </plugin>-->
152142

153143
</plugins>
154144
</build>

0 commit comments

Comments
 (0)