Skip to content

Dockerfile: explicitly pre-fetch BOM POMs missing from offline Maven cache - #3151

Merged
guusdk merged 1 commit into
igniterealtime:mainfrom
guusdk:Dockerfile_explicitly-retrieve-BOM-dependencies
Mar 3, 2026
Merged

guusdk merged 1 commit into
igniterealtime:mainfrom
guusdk:Dockerfile_explicitly-retrieve-BOM-dependencies

Conversation

@guusdk

@guusdk guusdk commented Mar 3, 2026

Copy link
Copy Markdown
Member

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.

…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.
@guusdk
guusdk requested a review from dwd March 3, 2026 13:32
@guusdk
guusdk merged commit 5da1778 into igniterealtime:main Mar 3, 2026
22 of 24 checks passed
@guusdk

guusdk commented Mar 3, 2026

Copy link
Copy Markdown
Member Author

I did not backport this to 5.0 as that branch is missing earlier changes to the Dockerfile that introduces the caching.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant