diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/libraries/quarkus/Dockerfile.jvm.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/libraries/quarkus/Dockerfile.jvm.mustache
index ef608ee6a16..08c75ecbaaa 100644
--- a/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/libraries/quarkus/Dockerfile.jvm.mustache
+++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/libraries/quarkus/Dockerfile.jvm.mustache
@@ -20,4 +20,12 @@ ENV AB_ENABLED=jmx_exporter
COPY target/lib/* /deployments/lib/
COPY target/*-runner.jar /deployments/app.jar
EXPOSE 8080
+
+# run with user 1001 and be prepared for be running in OpenShift too
+RUN adduser -G root --no-create-home --disabled-password 1001 \
+ && chown -R 1001 /deployments \
+ && chmod -R "g+rwX" /deployments \
+ && chown -R 1001:root /deployments
+USER 1001
+
ENTRYPOINT [ "/deployments/run-java.sh" ]
\ No newline at end of file
diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/libraries/quarkus/pom.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/libraries/quarkus/pom.mustache
index d92dff6d7cd..a81ab0fbed0 100644
--- a/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/libraries/quarkus/pom.mustache
+++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/libraries/quarkus/pom.mustache
@@ -9,9 +9,11 @@
UTF-8
2.22.0
- 0.23.2
- UTF-8
+ true
+ 0.25.0
+ 3.8.1
1.8
+ UTF-8
1.8
@@ -78,6 +80,10 @@
+
+ maven-compiler-plugin
+ ${compiler-plugin.version}
+
maven-surefire-plugin
${surefire-plugin.version}