Build status: build_failed
Key concerns
- ENTRYPOINT uses CMD ["bash"], leading to an interactive shell; not ideal for automated runtime.
- Final image copies /workspace (source/build artifacts) and lacks a minimal runtime footprint.
- No explicit EXPOSE or startup command for a real service/app.
Build error (failing step)
- Command: RUN ./mvnw -B -e --no-snapshot-updates -T 2C clean source:jar install -Pjacoco,checkstyle -DembeddedZookeeperPath=/tmp/zookeeper
- Exact errors:
- Unknown lifecycle phase "/root/.m2". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: pre-clean, clean, post-clean, validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-site, site, post-site, site-deploy. -> [Help 1]
- org.apache.maven.lifecycle.LifecyclePhaseNotFoundException: Unknown lifecycle phase "/root/.m2". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: pre-clean, clean, post-clean, validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-site, site, post-site, site-deploy.
- Exit code: 1
Missing packages/files
- None explicitly missing. Build shows apt-get installed ca-certificates, curl, unzip, zip; no missing-package errors reported.
Version mismatch info
- Base images: Maven 3.9.14-sapmachine-25 and Eclipse Temurin JRE 25.
- Maven wrapper pulled Maven 3.9.9 (apache-maven-3.9.9-bin) from /root/.m2/wrapper, indicating a Maven version mismatch between base image and wrapper; likely contributes to the lifecycle error.
Root cause and suggested fixes
- Likely cause: Maven wrapper version (3.9.9) incompatible with base image tooling (3.9.14-sapmachine-25), triggering Unknown lifecycle phase errors.
- Fixes:
- Align Maven versions: use a wrapper Maven that matches the base image (or upgrade/downgrade wrapper), or pin Maven in the Dockerfile to a compatible version.
- Ensure mvnw runs with correct working directory and that /root/.m2 is not misinterpreted as a lifecycle phase.
- Consider using a non-interactive startup (set an explicit CMD/ENTRYPOINT) and copy only built artifacts into the runtime image to reduce bloat.