Skip to content

Make Central metadata look like mirror metadata [MERGEOK]#37307

Merged
esolitos merged 1 commit into
masterfrom
arnej/adapt-metadata
Jun 27, 2026
Merged

Make Central metadata look like mirror metadata [MERGEOK]#37307
esolitos merged 1 commit into
masterfrom
arnej/adapt-metadata

Conversation

@arnej27959

Copy link
Copy Markdown
Member

When building the offline Maven repository for the system-test container, artifacts resolved directly from Maven Central produce metadata files named maven-metadata-central.xml (plus .sha1/.md5 checksums). Inside the container Maven resolves against the bundled repo as if from a mirror, where the metadata is expected to be named maven-metadata.xml. Copy each maven-metadata-central.xml* file to its maven-metadata.xml* counterpart so the metadata is found regardless of whether the original artifact came from Central or a mirror, avoiding re-downloads.

When building the offline Maven repository for the system-test container,
artifacts resolved directly from Maven Central produce metadata files named
maven-metadata-central.xml (plus .sha1/.md5 checksums). Inside the container
Maven resolves against the bundled repo as if from a mirror, where the
metadata is expected to be named maven-metadata.xml. Copy each
maven-metadata-central.xml* file to its maven-metadata.xml* counterpart so
the metadata is found regardless of whether the original artifact came from
Central or a mirror, avoiding re-downloads.
@arnej27959 arnej27959 requested review from esolitos and hmusum June 27, 2026 15:40

@esolitos esolitos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's try that! Thanks

@esolitos esolitos changed the title Make Central metadata look like mirror metadata Make Central metadata look like mirror metadata [MERGEOK] Jun 27, 2026
@esolitos esolitos merged commit 1087e34 into master Jun 27, 2026
4 checks passed
@esolitos esolitos deleted the arnej/adapt-metadata branch June 27, 2026 19:07
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.

2 participants