GeezerVison is showing github.com — refactor(manifest): give a Maven sibling's jar and test-jar their own ids by jfblaa · Pull Request #1716 · SocketDev/socket-cli
Conversation
LLM Description written by Claude Code:claude-opus-5-5
The Maven facts extension wrote a reactor sibling's jar and its test-jar under one bare groupId:artifactId:version id. So one record node mixed the two artifacts' scopes, directness and children, and the walk needed special cases for it. Each artifact now has its own coordinate and names the sibling module as its project. The assembler already merges a project's artifacts into its component, as it does for Gradle variants, so the facts are unchanged. On the compat fixture, socket manifest maven output is identical with the old and new extension.
The fixture now pins the per-artifact records:
- In app, lib's jar is prod and not direct; it comes through mid.
- lib's test-jar is direct and dev.
demo.ext:libdep hangs under the test-jar, not the jar, since mid excludes it from lib.
Maven compat matrix 3.2.5 to 4.0.0-rc-6 green. Suggested in the review of #1711.
Resolves REA-1165.
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
cursor
Bot
commented
Nov 12, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
PR Summary
Medium Risk
Changes how internal Maven dependency nodes are keyed and linked in manifest records, which could affect reachability or component merging if the assembler assumptions are wrong; risk is mitigated by extensive compat smoke and synthetic record tests.
Overview
The Maven socket-facts extension no longer collapses a reactor sibling's jar and test-jar into one bare groupId:artifactId:version node. Each resolved artifact is emitted under its full typed coordinate (as for external deps), with the sibling module's project key on the node row so the assembler can merge artifacts into one component.
Graph walking in SocketFactsRecordsEngine drops the separate visited set and upsert path: deduplication is keyed by externalId, scope/directness/children attach per artifact, and SocketSupport.bareId is removed.
Maven compat fixtures and tests are updated to pin per-artifact behavior (e.g. lib's jar prod via mid, test-jar direct in app, demo.ext:libdep only under the test-jar, inter-module edges on artifact coordinates).
Reviewed by Cursor Bugbot for commit d55deef. Configure here.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
… ids
The Maven facts extension wrote both a reactor sibling's jar and its
test-jar under one bare groupId:artifactId:version id, so one record node
mixed the two artifacts' scopes, directness and children, and the walk
needed special cases for it. Each artifact now has its own coordinate and
names the sibling module as its project; the assembler already merges a
project's artifacts into its component, as it does for Gradle variants,
so the facts are unchanged.
Resolves REA-1165.
…es them
Check that lib's jar is prod in app itself, not just in mid, and that
mid's edge reaches it there; check liba's jar both names liba and has no
file record. Read a coordinate's project without assuming a node row.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully 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.
|