GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||
GeezerVison is showing github.com — GH-1857: Include all repository failures in artifact messages by efegokdemir · Pull Request #2186 · apache/maven-resolver Conversation
Contributor
WhatInclude the per-repository failures for unresolved artifacts in WhyWhen artifact resolution fails for different reasons across repositories, the exception message currently reports only one cause. For example, a missing artifact in Central can be hidden by a transfer error from another repository, leaving users without the information needed to distinguish a bad coordinate from an unavailable repository. HowKeep the current primary cause selection, then append other recorded failures with the artifact and repository ID. Sort those additional details so the message is stable despite the concurrent map used to store repository failures. Fixes #1857 Testing
The reactor tests ran with Java 25; Spotless was verified separately with Java 17 because the configured formatter is incompatible with Java 25. CompatibilitySingle-failure messages are unchanged and covered by a regression assertion. Successful resolution behavior is unchanged. AI assistance was used for analysis and implementation; the patch and tests were reviewed before submission. To make clear that you license this contribution under the Apache License Version 2.0, January 2004, check one of the following:
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsSigned-off-by: Efe Gökdemir <[email protected]>
gnodet-bot
reviewed
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good improvement to the artifact resolution error messages. The approach of collecting additional failures separately from the primary cause, using reference-equality identity ( Two minor points below. This review was generated by an AI agent, Hermès on behalf of @gnodet.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
gnodet-bot
reviewed
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good improvement to the artifact resolution error messages. The approach of collecting additional failures separately from the primary cause, using reference-equality identity ( Two minor points below. This review was generated by an AI agent, Hermès on behalf of @gnodet.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Signed-off-by: Efe Gökdemir <[email protected]>
|
There was an error while loading. Please reload this page.
|
Addressed both suggestions in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Re-review after the new commit.
Addressed: ✅ The assertEquals suggestion was applied — the test now asserts the exact message string, including the single-failure regression case and the ordering-invariance check. Pre-fix validation confirmed the test was failing before the fix and passes after.
Not addressed: The ArrayList<String> nit from the previous review remains open (see inline comment below).
This review was generated by an AI agent, Hermès on behalf of @gnodet.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Nit: I would tell you exactly the opposite as @gnodet told, given we talk about local variable; my pet peeve is to stick closest to the type as possible 😄 No changes or anything needed, just an observation. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Use 'var' ? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Improve exception message fromArtifactResolutionException if multiple remote repos failed to resolve an artifact (for different reasons)
There was an error while loading. Please reload this page.