Have `org.apache.maven.api.services.DependencyResolver` raise `DependencyResolutionRequest` events
New feature, improvement proposal
It looks like the internal API org.apache.maven.lifecycle.internal.LifecycleDependencyResolver#resolveProjectArtifacts eventually raises DependencyResolutionRequest events, however the public api org.apache.maven.api.services.DependencyResolver does not. Any reason why it should not be the case?
We miss those events, for example, when executing the dependency:go-offline goal.
Currently, only execution events are sent in the new API.
Resolution requests are currently not intercepted.
Unfortunately, the new API services do not wrap the older ones, so events that can be intercepted such as DependencyResolutionRequest have no clear mapping yet.
As a workaround, all requests from the new API can be intercepted by providing a custom RequestCacheFactory which will provide a way to listen to resolution requests. However, this will require an extension, not a plugin, not sure what you really need.