Repository navigation
Dockerfile: explicitly pre-fetch BOM POMs missing from offline Maven cache - #3151
Merged
guusdk merged 1 commit intoMar 3, 2026
Conversation
…cache The go-offline-maven-plugin and dependency:resolve-plugins do not reliably resolve POM artifacts imported via <scope>import</scope> in <dependencyManagement>. This caused the offline Maven build step to fail with: Cannot access igniterealtime (...) in offline mode and the artifact org.junit:junit-bom:pom:5.13.4 has not been downloaded from it before. Cannot access igniterealtime (...) in offline mode and the artifact org.mockito:mockito-bom:pom:5.4.0 has not been downloaded from it before. Add explicit dependency:get calls for junit-bom and mockito-bom alongside the existing plexus-utils workaround, and consolidate all three into a single RUN --mount layer for clarity.
Member
Author
|
I did not backport this to 5.0 as that branch is missing earlier changes to the Dockerfile that introduces the caching. |
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.
The go-offline-maven-plugin and dependency:resolve-plugins do not reliably resolve POM artifacts imported via
<scope>import</scope>in<dependencyManagement>. This caused the offline Maven build step to fail with:Add explicit dependency:get calls for junit-bom and mockito-bom alongside the existing plexus-utils workaround, and consolidate all three into a single
RUN --mountlayer for clarity.