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 — [maven-resolver-1.9.x] Fix #1269: Report a clear message when resolving an artifact with no version by arturobernalg · Pull Request #2221 · apache/maven-resolver Conversation
Member
Backport of #2209 (e9cd7f3 on master) to maven-resolver-1.9.x.
The production fix is identical to master's. The test is ported to this module's JUnit 4 style (master has since moved to JUnit 5) since Both new tests fail without the production change and pass with it. Full
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…ge when resolving an artifact with no version (apache#2209) DefaultArtifactResolver accepts a VersionResult whose version is null or blank, which happens whenever the request's Artifact has no version at all. It keeps going, and the failure only surfaces much later as an opaque IllegalArgumentException from the local path composer, with no mention of the real cause. DefaultArtifactResolver#resolve now rejects a null or blank resolved version immediately after it is applied to the artifact, with an ArtifactNotFoundException that names the artifact and says its version is missing or blank. Same fix as master (e9cd7f3), ported to this module's JUnit 4 test style; the production code is unchanged.
gnodet-bot
approved these changes
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. LGTM. Clean, correct backport of the master fix (#2209) to 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 reactions
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reviewers1 more reviewerUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |