From bb419be5f4ce54e1fc14738f6d5efb478de131bf Mon Sep 17 00:00:00 2001 From: damage Date: Mon, 23 Dec 2024 15:44:45 +0100 Subject: [PATCH] init maven subsystem in docker --- build/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/Dockerfile b/build/Dockerfile index 3dc8e76..4bfe398 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -9,6 +9,11 @@ COPY target/mavor.war /usr/local/tomcat/webapps/ROOT.war # create temporary directory, no need to be a volume RUN mkdir /mavor +# this mvn command fails but is intended to fail +# it just initializes maven subsystem so the first +# download on the website is faster +RUN /usr/bin/mvn dependency:copy-dependencies || echo "maven init done. fail is intended" + # set required ENV ENV MAVOR_MAVEN_EXECUTABLE="/usr/bin/mvn" ENV MAVOR_TEMP_DIR="/mavor"