This is an automated email from the ASF dual-hosted git repository.

squakez pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/main by this push:
     new c480966cf fix(ci): extract before container
c480966cf is described below

commit c480966cf83f449438f93fb9c106037da0f666b7
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Sat Dec 5 16:01:12 2026 +0100

    fix(ci): extract before container
---
 .gitignore       |  2 ++
 build/Dockerfile | 11 ++++++++---
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/.gitignore b/.gitignore
index f9274f44a..bfc33924b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -48,7 +48,9 @@ build/_kamelets
 build/maven/target/
 build/maven
 build/m2
+build/_mvnw
 _scratch/
+xtmp
 
 # YAKS test output
 .yaks-jbang/
diff --git a/build/Dockerfile b/build/Dockerfile
index e7e2ac1dc..ebebc2cf3 100644
--- a/build/Dockerfile
+++ b/build/Dockerfile
@@ -32,10 +32,15 @@ RUN mkdir -p ${MAVEN_HOME}
 RUN mkdir -p ${MVN_REPO}
 
 # Prepare the maven wrapper required in the build Pod strategy
-COPY build/mvnw/mvnw.tar ${MVNW_DIR}
-RUN tar -xC ${MVNW_DIR} -f ${MVNW_DIR}mvnw.tar \
-    && rm -v ${MVNW_DIR}mvnw.tar \
+COPY build/_mvnw/mvnw ${MVNW_DIR}
+COPY build/_mvnw/mvnw.cmd ${MVNW_DIR}
+COPY build/_mvnw/mvnwDebug ${MVNW_DIR}
+COPY build/_mvnw/mvnwDebug.cmd ${MVNW_DIR}
+COPY build/_mvnw/.mvn ${MVNW_DIR}.mvn
+
+RUN chmod +x ${MVNW_DIR}mvnw ${MVNW_DIR}mvnwDebug \
     && sed -i "s;distributionUrl=.*;distributionUrl=${MAVEN_DIST_URL};" 
${MVNW_DIR}.mvn/wrapper/maven-wrapper.properties
+
 # Used by mvnw to download maven dist into it
 ENV MAVEN_USER_HOME="${MAVEN_HOME}"
 # Install a default mvnw distribution at build time

Reply via email to