apache / apache/maven

Have `org.apache.maven.api.services.DependencyResolver` raise `DependencyResolutionRequest` events

Open
#10,994 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
5.3k
Forks
3.1k
Avg merge
20h 42m
Merged PRs (30d)
297

Description

### 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.

Contributor guide

Open the contributing guide

Research direction

Compare org.apache.maven.api.services.DependencyResolver with org.apache.maven.lifecycle.internal.LifecycleDependencyResolver#resolveProjectArtifacts, focusing on how DependencyResolutionRequest events are raised. Reproduce the missing events while executing the dependency:go-offline goal, then verify that the public API emits the expected events.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.