Fix SCM URL inheritance for child modules on Maven Central#798
Fix SCM URL inheritance for child modules on Maven Central#798Schmarvinius merged 1 commit intomainfrom
Conversation
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".
There was a problem hiding this comment.
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
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: Addedchild.scm.connection.inherit.append.path="false",child.scm.developerConnection.inherit.append.path="false", andchild.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.📬 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 | 💬 Feedbackanthropic--claude-4.6-sonnetpull_request.openede9f85300-37e5-11f1-8ab9-481a42d333a4