I have a multi maven modules project which has structure like this:

3 modules check-mark, insertion, deletion using common module as dependency. When I try to docker check-mark module, i got the DependencyResolutionException:
Dockerfile-cm
FROM maven:3.6.3-openjdk-17-slim as build
ENV HOME=/app
COPY common/src $HOME/common/src
COPY common/pom.xml $HOME/common
COPY pom.xml $HOME
RUN mvn -Dmaven.test.skip=true -f $HOME/common/pom.xml clean install
COPY check-mark/src $HOME/check-mark/src
COPY check-mark/pom.xml $HOME/check-mark/pom.xml
RUN mvn -Dmaven.test.skip=true -f $HOME/check-mark/pom.xml clean install install:install-file -Dfile = $HOME/common/target/common-0.0.1-SNAPSHOT.jar -DgroupId=vn.ghtk.archiving.ecom -DartifactId=common -Dversion=0.0.1-SNAPSHOT -Dpackaging=jar
#
# Package stage
#
FROM openjdk:17-oracle
COPY --from=build $HOME/check-mark/target/check-mark-0.0.1-SNAPSHOT.jar check-mark-0.0.1-SNAPSHOT.jar
ENTRYPOINT ["java", "-jar", "check-mark-0.0.1-SNAPSHOT.jar"]
Docker-compose
version: "3"
services:
ecom-bag-cm:
container_name: "ecom-bag-cm"
build:
context: .
dockerfile: Dockerfile-cm
image: ecom-bag-cm:1.0.0
*** the error log:***
#14 4.595 [INFO] -----------------< vn.ghtk.archiving.ecom:check-mark >------------------
#14 4.595 [INFO] Building check-mark 0.0.1-SNAPSHOT
#14 4.595 [INFO] --------------------------------[ jar ]---------------------------------
#14 4.964 [INFO]
#14 4.964 [INFO] ------------------------------------------------------------------------
#14 4.967 [INFO] Skipping check-mark
#14 4.969 [INFO] This project has been banned from the build due to previous failures.
#14 4.971 [INFO] ------------------------------------------------------------------------
#14 4.972 [INFO]
#14 4.972 [INFO] ------------------------------------------------------------------------
#14 4.974 [INFO] Skipping check-mark
#14 4.974 [INFO] This project has been banned from the build due to previous failures.
#14 4.975 [INFO] ------------------------------------------------------------------------
#14 4.976 [INFO] ------------------------------------------------------------------------
#14 4.977 [INFO] BUILD FAILURE
#14 4.977 [INFO] ------------------------------------------------------------------------
#14 4.979 [INFO] Total time: 3.617 s
#14 4.983 [INFO] Finished at: 2022-09-20T03:53:34Z
#14 4.983 [INFO] ------------------------------------------------------------------------
#14 4.983 [ERROR] Failed to execute goal on project check-mark: Could not resolve dependencies for project vn.ghtk.archiving.ecom:check-mark:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at vn.ghtk.archiving.ecom:common:jar:0.0.1-SNAPSHOT: Failed to read artifact descriptor for vn.ghtk.archiving.ecom:common:jar:0.0.1-SNAPSHOT: Could not find artifact vn.ghtk.archiving.ecom:bag:pom:0.0.1-SNAPSHOT -> [Help 1]
#14 4.983 [ERROR]
#14 4.983 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
#14 4.983 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
#14 4.983 [ERROR]
#14 4.983 [ERROR] For more information about the errors and possible solutions, please read the following articles:
#14 4.983 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
Can anyone help me to know why this error appear and how to fix it?