GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [3.10.0] LegacyLocalRepositoryManager.overlay() now writes Resolver local-repository files into the target repository (breaks central-publishing-maven-plugin) · Issue #13388 · apache/maven

[3.10.0] LegacyLocalRepositoryManager.overlay() now writes Resolver local-repository files into the target repository (breaks central-publishing-maven-plugin) #13388

New issue
Copy link
New issue
Copy link
Closed
Closed
[3.10.0] LegacyLocalRepositoryManager.overlay() now writes Resolver local-repository files into the target repository (breaks central-publishing-maven-plugin)#13388
Copy link

Description

@NassimBtk
NassimBtk
opened on Oct 8, 2026
Issue body actions

Affected version

3.10.0

Bug description

Since Maven 3.10.0, LegacyLocalRepositoryManager.overlay(ArtifactRepository, RepositorySystemSession, RepositorySystem) changed:

  • 3.10.0: for a repository that uses DefaultRepositoryLayout, it returns a session whose local repository manager is a regular Resolver 2 manager, set up by DefaultRepositorySystemSessionFactory.setUpLocalRepositoryManager. This came with Feat: Maven 3.x with Resolver 2.x #11778.
  • 3.9.x: it always wrapped the repository in a LegacyLocalRepositoryManager.

As a result, a plugin that calls the maven-compat ArtifactInstaller.install(file, artifact, repository) to install into a directory that is not the local repository now gets local-repository bookkeeping files in that directory:

File 3.9.x 3.10.0
Group/artifact-level metadata maven-metadata-<repositoryId>.xml maven-metadata-local.xml
Origin tracking none <version>/_remote.repositories
Locks none .locks/*.lock (file-lock named locks, the Resolver 2 default)

Impact. org.sonatype.central:central-publishing-maven-plugin 0.11.0, the current release used to publish to Maven Central, stages release artifacts this way into target/central-staging (repository id central-staging). It then:

  1. deletes only maven-metadata-central-staging.xml;
  2. zips the staging directory;
  3. uploads the bundle.

Maven Central then rejects the deployment:

Deployment ... failed
common:
 - Bundle has content that does NOT have a .pom file: org/metricshub/jflat

This is also reported at mavenplugins/central-publishing-maven-plugin#78, where a multi-module project hits the same error. The plugin sources are not public, so I am reporting the Maven side here, and I am reporting the plugin side to Sonatype support.

Reproduction

  1. Use Maven 3.10.0 with any jar project that has a release version and central-publishing-maven-plugin 0.11.0 as an extension (<extensions>true</extensions>).
  2. Run mvn deploy -DcentralBaseUrl=http://127.0.0.1:9. The bundle is built, and the upload then fails locally.
  3. List target/central-publishing/central-bundle.zip. It contains:
    • .locks/artifact~<g>~<a>~...lock
    • <g>/<a>/<v>/_remote.repositories
    • <g>/<a>/maven-metadata-local.xml

With Maven 3.9.12, the same bundle contains only the artifacts and their checksums.

Workaround (release build only)

-Daether.priority.VersionsMetadataGeneratorFactory=NaN
-Daether.priority.EnhancedLocalRepositoryManagerFactory=NaN
-Daether.syncContext.named.factory=rwlock-local

Expected. Either:

  • keep the 3.9 behaviour of overlay() for a repository that is not the session's local repository: metadata named after the repository id, and no tracking or lock files written into the target directory; or
  • list this as a breaking change for maven-compat callers in the 3.10.0 release notes, so that plugin authors can adapt.

I can test a fix or a snapshot.

Reacted by Oleksandr Porunov, Luboš Račanský, Michael Prankl, Alex "Blex" B, chris-twiner and ObserverOfTime

Activity

  1. agavrilov76
    added a commit that references this issue on Oct 9, 2026

    fix(ci): pin Maven 3.9.16 so Central publishing produces a valid bundle

    372a9e3
  2. cstamas commented on Oct 9, 2026

    @cstamas
    cstamas
    on Oct 9, 2026
    Member
    More actions

    The mentioned plugin relies on deprecated Maven 2 features (the maven-compat, that is a module in Maven 3 providing Maven 2 backward compatibility). This is the reason why the mentioned plugin does not work in Maven 4 (major versions provides V-1 but not V-2 compatibility, so Maven 4 will not support Maven 2 stuff).

    The plugin should be fixed.

    Recommended replacement is https://maveniverse.eu/docs/njord/

    Reacted by Alex "Blex" B
  3. ajreynol
    added a commit that references this issue on Oct 9, 2026

    ci: Pin Maven 3.9 when publishing to Maven Central (cvc5#13062)

    6930243
  4. artem-v
    added 9 commits that reference this issue on Oct 10, 2026

    Pin Maven 3.9.16 in Release CI (#134)

    ed60236

    Pin Maven 3.9.16 in Release CI (#12)

    5b43363

    Pin Maven 3.9.16 in Release CI (#10)

    1d535dc

    Pin Maven 3.9.16 in Release CI (#117)

    3e2affa

    Pin Maven 3.9.16 in Release CI (#46)

    0c1fee5

    Pin Maven 3.9.16 in Release CI (#225)

    2e11f8c

    Pin Maven 3.9.16 in Release CI (#419)

    e34e2f7

    Pin Maven 3.9.16 in Release CI (#987)

    8fbaab0

    Pin Maven 3.9.16 in Release CI (#14)

    0dbd466
  5. puredanger commented on Oct 11, 2026

    @puredanger
    puredanger
    on Oct 11, 2026
    More actions

    FYI, last week the image used by Github CI action runners started using Maven CLI 3.10.0 (previous week was 3.9.16). That change triggered this condition for us and caused our builds to fail this week. It took a fair amount of investigation to find this issue. I suspect this change is likely to cause people to see this with greater frequency now.

    Reacted by Michael Prankl
  6. porunov
    added a commit that references this issue on Oct 12, 2026

    Publish to Maven Central with Maven 3.9

    530e539
  7. andersostby
    added a commit that references this issue on Oct 13, 2026

    Workaround for å hindre metadata-filer i central-bundle.zip som laste…

    08eef30
  8. dkropachev
    added a commit that references this issue on Oct 13, 2026

    ci: pin Maven 3.9.16 and Central plugin 0.11.0 for releases

    5a3a272
  9. emmansun
    added a commit that references this issue on Oct 14, 2026

    Pin Maven 3.9.16 in release workflow (apache/maven#13388: Maven 3.10.…

    43f6490
  10. kridai
    added 2 commits that reference this issue on Oct 14, 2026

    ci: pin Maven 3.9.16 in the publish job

    bae2b47

    ci: pin Maven 3.9.16 in the publish job (#984)

    0155569
  11. gnodet commented on Oct 14, 2026

    @gnodet
    gnodet
    on Oct 14, 2026
    Contributor
    More actions

    The issue has been fixed by sonatype-nexus-community/central-publishing-maven-plugin#3

    Reacted by Nassim Boutekedjiret and Tobias Schneider
  12. gnodet
    closed this as completedon Oct 14, 2026
  13. julienmerconsulting
    added 2 commits that reference this issue on Oct 16, 2026

    ci(publish): Maven 3.9.16 brought along, not borrowed from the runner

    2630cd1

    ci(publish): Maven 3.9.16 brought along, not borrowed from the runner

    63ff8eb
  14. fahara02
    added a commit that references this issue on Oct 18, 2026

    ci(release): pin Maven to 3.9.9 for the Central publish

    19de23a
  15. sendclipper
    added a commit that references this issue on Oct 20, 2026

    SDK for Java: release with Maven 3.9.11, not the runner's 3.10.0

    9ea2264
  16. SteffiZabel
    added a commit that references this issue on Oct 20, 2026

    build: IFS-5612 add workaround to remove files that shouldn't be crea…

    ba5aff2
  17. fbagredo
    added a commit that references this issue on Oct 20, 2026

    ci(release): pin Maven 3.9 — Maven 3.10 breaks the Central bundle

    dadb204
  18. jonty-uk-gov-mirror
    added a commit that references this issue on Oct 23, 2026

    [PP-16100] Apply temporary workaround for failing maven deployments

    07532d9
  19. whysosuresh
    added a commit that references this issue on Nov 6, 2026

    fix(release): publish to Maven Central with central-publishing-maven-…

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.