You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Goal list-dependency-types does not work with Maven 4.0.0-rc-5 #378
Hello @slawekjaranowski , I am sorry for the late reply. I got stuck in some situation.
I found out that on Maven 4 the injected Map<String, ArtifactHandler> is empty, because types now come from TypeProviders, which are Maven 4-only API. I asked on the dev list (thread), and Romain suggested using reflection on Maven 4 and keeping the current behaviour for Maven 3.
I tried that, but I couldn't get a working instance of TypeProvider from inside the plugin. Then classes started, I was away from it for a while, and now I don't remember all the details of what I tried.
I'd still like to finish it, so If anyone can give any hint/help on the right way to solve this I will really appreciate.
Activity
Neil-Tomar commentedon Jul 25, 2026
Hi @cstamas — is this one still up? I've reproduced it locally and started digging into where it goes wrong. Happy to take it if no one else is on it.
slawekjaranowski commentedon Nov 14, 2026
@Neil-Tomar it is still issue, so PR with fix is welcome
Neil-Tomar commentedon Nov 28, 2026
Hello @slawekjaranowski , I am sorry for the late reply. I got stuck in some situation.
I found out that on Maven 4 the injected
Map<String, ArtifactHandler>is empty, because types now come fromTypeProviders, which are Maven 4-only API. I asked on the dev list (thread), and Romain suggested using reflection on Maven 4 and keeping the current behaviour for Maven 3.I tried that, but I couldn't get a working instance of
TypeProviderfrom inside the plugin. Then classes started, I was away from it for a while, and now I don't remember all the details of what I tried.I'd still like to finish it, so If anyone can give any hint/help on the right way to solve this I will really appreciate.