From a0f0e85eb6b4e41b2c3f7bcf23c4cd150495f23e Mon Sep 17 00:00:00 2001 From: matevip Date: Tue, 28 Jul 2026 05:46:11 -0400 Subject: [PATCH] fix(docker): copy the mem0 plugin POM so the Maven reactor can be built MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Dockerfile pre-copies module POMs for layer caching, but the list had not been updated when mateclaw-plugin-mem0 was added to the root POM's . Maven fails while constructing the reactor if a declared module directory is missing, so `mvn -pl mateclaw-server -am dependency:go-offline` aborted with "Child module /build/mateclaw-plugin-mem0 does not exist" before it ever reached dependency resolution — every container build broke. Copy the missing POM and note that this list must mirror the root POM's , even for modules the image never builds. The module only makes the reactor readable; it stays out of the `-pl mateclaw-server -am` build, so the image is unchanged in size. Fixes #566 --- mateclaw-server/Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mateclaw-server/Dockerfile b/mateclaw-server/Dockerfile index 4e9cd4b5..8875b50c 100644 --- a/mateclaw-server/Dockerfile +++ b/mateclaw-server/Dockerfile @@ -42,12 +42,19 @@ ARG MAVEN_FLAGS="" COPY mateclaw-server/settings.xml /root/.m2/settings.xml # Copy the root parent plus module POMs first for Docker layer caching. +# +# This list MUST mirror in the root pom.xml, even for modules this +# image never builds. Maven fails while constructing the reactor if a declared +# module directory is missing ("Child module /build/ does not exist"), +# so `-pl mateclaw-server -am` aborts before it ever gets to dependency +# resolution. When a module is added to the root POM, add its pom.xml here too. WORKDIR /build COPY pom.xml ./pom.xml COPY mateclaw-plugin-api/pom.xml mateclaw-plugin-api/pom.xml COPY mateclaw-server/pom.xml mateclaw-server/pom.xml COPY mateclaw-plugin-sample/pom.xml mateclaw-plugin-sample/pom.xml COPY mateclaw-plugin-search-sample/pom.xml mateclaw-plugin-search-sample/pom.xml +COPY mateclaw-plugin-mem0/pom.xml mateclaw-plugin-mem0/pom.xml # Pre-fetch backend dependencies through the reactor so the parent POM, # dependencyManagement, and internal module versions all resolve consistently.