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 — Missing `javax.inject.Provider` from `TrackingFileManagerProvider` · Issue #1858 · apache/maven-resolver

Missing javax.inject.Provider from TrackingFileManagerProvider #1858

New issue
Copy link
New issue
Copy link
Closed
#1859
Closed
Missing javax.inject.Provider from TrackingFileManagerProvider#1858
#1859
Copy link
Labels
bugSomething isn't working

Description

@mkoncek
mkoncek
opened on May 4, 2026
Issue body actions

Affected version

2.0.17

Bug description

After updating to a new version of a dependency maven-resolver-supplier-mvn4 to 2.0.17, our build started to fail due to java.lang.NoClassDefFoundError: javax/inject/Provider.
I did a quick research using Claude Code, here is a snipped of its output:

Here's what happened: PR #1814 ("Provide modern TrackingFileManager"), merged for 2.0.17, introduced a new TrackingFileManagerProvider class that implements javax.inject.Provider. The RepositorySystemSupplier.createTrackingFileManager() method at line 232 references this class, which triggers class loading of javax.inject.Provider even when using the Service Loader (non-DI) path. This is the same category of bug as MRESOLVER-298, but in different code introduced by a different change.

Our build is indeed fixed by adding:

    <dependency>
      <groupId>javax.inject</groupId>
      <artifactId>javax.inject</artifactId>
      <version>1</version>
      <scope>runtime</scope>
    </dependency>

Could you verify this?

Activity

  1. mkoncek
    added
    bugSomething isn't working
    on May 4, 2026
  2. cstamas commented on May 4, 2026

    @cstamas
    cstamas
    on May 4, 2026
    Member
    More actions

    Yes, this is a bug: the core resolver object graph defines javax.inject as optional dependency, and PR #1814 violated this. Sorry for this. This means we need 2.0.18 release.

  3. cstamas
    closed this as completedin #1859on May 8, 2026
  4. cstamas
    added a commit that references this issue on May 8, 2026

    Fix: Remove javax.inject dependency (#1859)

    This issue will close once commit 14c6bc5 is merged into the 'master' branch.
    14c6bc5
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

    bugSomething isn't working

    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.