diff --git a/samples/springboot3/pet-store-native/Dockerfile b/samples/springboot3/pet-store-native/Dockerfile
index 8c395586..30b77503 100644
--- a/samples/springboot3/pet-store-native/Dockerfile
+++ b/samples/springboot3/pet-store-native/Dockerfile
@@ -14,7 +14,7 @@ RUN mv graalvm-community-openjdk-${GRAAL_VERSION}* /usr/lib/graalvm
ENV JAVA_HOME /usr/lib/graalvm
# Maven
-ENV MVN_VERSION 3.9.6
+ENV MVN_VERSION 3.9.9
ENV MVN_FOLDERNAME apache-maven-${MVN_VERSION}
ENV MVN_FILENAME apache-maven-${MVN_VERSION}-bin.tar.gz
RUN curl -4 -L https://archive.apache.org/dist/maven/maven-3/${MVN_VERSION}/binaries/${MVN_FILENAME} | tar -xvz
diff --git a/samples/springboot3/pet-store-native/pom.xml b/samples/springboot3/pet-store-native/pom.xml
index e8c1fbc3..fec29957 100644
--- a/samples/springboot3/pet-store-native/pom.xml
+++ b/samples/springboot3/pet-store-native/pom.xml
@@ -76,7 +76,8 @@
native-maven-plugin
- --enable-url-protocols=http --enable-preview -march=compatibility
+ --enable-url-protocols=http
+ -march=compatibility