Skip to content

refactor(manifest): give a Maven sibling's jar and test-jar their own ids - #1716

Merged
Jeppe Fredsgaard Blaabjerg (jfblaa) merged 2 commits into
v1.xfrom
jfblaa/maven-sibling-artifact-ids
Nov 12, 2026
Merged

Jeppe Fredsgaard Blaabjerg (jfblaa) merged 2 commits into
v1.xfrom
jfblaa/maven-sibling-artifact-ids

Conversation

@jfblaa

Copy link
Copy Markdown
Contributor

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

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants