Repository navigation
UID2-8298: bake Maven dependencies and compiled tests into the e2e image - #152
Merged
samin-ttd merged 2 commits intoNov 10, 2026
Merged
Conversation
Run a Maven test phase at image build time so the local repository and compiled test classes are part of the image. Container start no longer downloads dependencies or compiles the test sources before running the selected suites. The build step uses a tag filter that matches no test, so surefire and its JUnit provider are resolved while nothing is executed. BasicTest is selected because the suite classes fail when a filter excludes all tests. CMD, ENV and the base image are unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Replace the filtered test phase with test-compile. It resolves the project and compiler dependencies and compiles the test sources without running JUnit, and does not depend on any particular test class existing. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
mcollins-ttd
approved these changes
Nov 10, 2026
samin-ttd
deleted the
sra-UID2-8298-allow-daily-scan-to-scan-dependencies
branch
November 10, 2026 05:45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a build step to the Dockerfile that runs
mvn -B test-compile. The Maven repository and the compiled test classes are now part of the image, so container start no longer downloads dependencies or compiles the test sources.Why
Change
RUN mvn -B test-compileafter the sources are copied.CMD,ENVand the base image are unchanged, sodocker pullanddocker runwith--envand--networkwork as before.Notes
🤖 Generated with Claude Code