You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "mkoncek (via GitHub)" <gi...@apache.org> on 2026/05/04 08:03:22 UTC
[I] Missing `javax.inject.Provider` from `TrackingFileManagerProvider` [maven-resolver]
mkoncek opened a new issue, #1858:
URL: https://github.com/apache/maven-resolver/issues/1858
### 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](https://github.com/apache/maven-resolver/pull/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?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Missing `javax.inject.Provider` from `TrackingFileManagerProvider` [maven-resolver]
Posted by "cstamas (via GitHub)" <gi...@apache.org>.
cstamas closed issue #1858: Missing `javax.inject.Provider` from `TrackingFileManagerProvider`
URL: https://github.com/apache/maven-resolver/issues/1858
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Missing `javax.inject.Provider` from `TrackingFileManagerProvider` [maven-resolver]
Posted by "cstamas (via GitHub)" <gi...@apache.org>.
cstamas commented on issue #1858:
URL: https://github.com/apache/maven-resolver/issues/1858#issuecomment-4369569177
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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org