From 3f735c26fcbe104bd1050538e782091566b594d6 Mon Sep 17 00:00:00 2001 From: Carlos Arango <78692601+carlosarangocardona@users.noreply.github.com> Date: Tue, 14 Oct 2025 08:43:49 +0200 Subject: [PATCH] refactor: Update maven options in Dockerfile-ultimate Modify the maven optons to: - Use -Dmaven.test.skip=true to avoid compiling and running tests. - Use --no-transfer-progress to avoid logging the artifacts transfer progress. --- springboot/Dockerfile-ultimate | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/springboot/Dockerfile-ultimate b/springboot/Dockerfile-ultimate index 9b5c1ba..e6f3484 100644 --- a/springboot/Dockerfile-ultimate +++ b/springboot/Dockerfile-ultimate @@ -2,7 +2,7 @@ FROM maven:3-eclipse-temurin-21 AS build WORKDIR /opt/app COPY src ./src COPY pom.xml . -RUN --mount=type=cache,target=/root/.m2 mvn package -DskipTests +RUN --mount=type=cache,target=/root/.m2 mvn package -Dmaven.test.skip=true --no-transfer-progress RUN jar xf target/simplecode-0.0.1-SNAPSHOT.jar RUN jdeps --ignore-missing-deps -q \ --recursive \ @@ -37,4 +37,4 @@ RUN groupadd -r appuser && useradd -r -g appuser appuser RUN chown -R appuser:appuser /opt/app USER appuser -ENTRYPOINT ["java","-XX:+UseParallelGC","-XX:MaxRAMPercentage=75","org.springframework.boot.loader.launch.JarLauncher"] \ No newline at end of file +ENTRYPOINT ["java","-XX:+UseParallelGC","-XX:MaxRAMPercentage=75","org.springframework.boot.loader.launch.JarLauncher"]