Skip to content

Fix SCM URL inheritance for child modules on Maven Central#798

Merged
Schmarvinius merged 1 commit intomainfrom
fix/scm-url-inheritance
Apr 14, 2026
Merged

Fix SCM URL inheritance for child modules on Maven Central#798
Schmarvinius merged 1 commit intomainfrom
fix/scm-url-inheritance

Conversation

@Schmarvinius
Copy link
Copy Markdown
Collaborator

@Schmarvinius Schmarvinius commented Apr 14, 2026

Fix SCM URL Inheritance for Child Modules on Maven Central

Bug Fix

🐛 Fixed an issue where child modules were incorrectly inheriting and appending their paths to the parent SCM URL when published to Maven Central.

Changes

  • pom.xml: Added child.scm.connection.inherit.append.path="false", child.scm.developerConnection.inherit.append.path="false", and child.scm.url.inherit.append.path="false" attributes to the <scm> element. This prevents Maven from automatically appending child module paths to the inherited SCM URLs, ensuring all modules point to the correct root repository URL on Maven Central.
  • 🔄 Regenerate and Update Summary

📬 Subscribe to the Hyperspace PR Bot DL to get the latest announcements and pilot features!

PR Bot Information

Version: 1.20.11 | 📖 Documentation | 🚨 Create Incident | 💬 Feedback

  • LLM: anthropic--claude-4.6-sonnet
  • Output Template: Default Template
  • Summary Prompt: Default Prompt
  • Event Trigger: pull_request.opened
  • Correlation ID: e9f85300-37e5-11f1-8ab9-481a42d333a4
  • File Content Strategy: Full file content

Maven appends the child module path to inherited SCM URLs, causing
links on Maven Central to redirect to non-existent GitHub URLs like
.../cds-feature-attachments/cds-feature-attachments. Disable this
behavior with child.scm.*.inherit.append.path="false".
@Schmarvinius Schmarvinius requested a review from a team as a code owner April 14, 2026 09:40
Copy link
Copy Markdown
Contributor

@hyperspace-insights hyperspace-insights bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change is correct and well-scoped. The three child.scm.*.inherit.append.path="false" attributes on the <scm> element are the standard Maven mechanism (introduced in Maven 3.6.1) to prevent child modules from inheriting the parent SCM URL with their artifact path appended — which is exactly the fix needed for correct SCM metadata on Maven Central in a multi-module project.

The diff is a single-line, targeted change with no logic errors, typos, or other issues. The fix is straightforward and appropriate.

This is a clean, minimal change that correctly resolves SCM URL inheritance for child modules published to Maven Central. No issues found.

PR Bot Information

Version: 1.20.11 | 📖 Documentation | 🚨 Create Incident | 💬 Feedback

  • LLM: anthropic--claude-4.6-sonnet
  • Event Trigger: pull_request.opened
  • Agent Instructions:
  • Correlation ID: e9f85300-37e5-11f1-8ab9-481a42d333a4
  • File Content Strategy: Full file content

@Schmarvinius Schmarvinius merged commit e183776 into main Apr 14, 2026
12 checks passed
@Schmarvinius Schmarvinius deleted the fix/scm-url-inheritance branch April 14, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants