apache / apache/maven

[MNG-6659] DependencyResolutionResult not fired when dependency resolutions fails

Open
#8,635 5 comments 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
5.3k
Forks
3.1k
Avg merge
20h 42m
Merged PRs (30d)
297

Description

**[Benedikt Ritter](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=britter)** opened **[MNG-6659](https://issues.apache.org/jira/browse/MNG-6659?redirect=false)** and commented

When dependency resolution starts Maven fires a DependencyResolutionRequest event object. After dependencies have been resolved a DependencyResolutionResult event is fired. The problem is, that the result is only fired if dependency resolution is successful. If dependency resolution fails, one has to listen for ExecutionEvent carrying a LifeCycleException with DependencyResolutionException as cause. The DependencyResolutionException will have the DependencyResolutionResult containing the cause of why resolution failed.

It would be great if the DependencyResolutionResult would be fired as an event even if dependency resolutions fails.

---

**Affects:** 3.6.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.