Skip to content

Add flatten-maven-plugin for Maven Central POM validation - #21

Merged
ancongui merged 1 commit into
developfrom
fix/flatten-maven-plugin
Feb 11, 2026
Merged

Add flatten-maven-plugin for Maven Central POM validation#21
ancongui merged 1 commit into
developfrom
fix/flatten-maven-plugin

Conversation

@ancongui

Copy link
Copy Markdown
Contributor

Summary

  • Adds flatten-maven-plugin (v1.6.0) with flattenMode=ossrh to the maven-central profile
  • Resolves Sonatype Central Portal validation failures where child module POMs were missing inherited metadata (url, licenses, scm, developers) and had unresolved dependency versions

Context

Maven Central validates the uploaded POM directly, not the effective POM. Child modules inherit metadata from this parent, but the raw POM file doesn't contain it. The flatten plugin creates a complete POM for upload.

…lidation

Child modules inherit metadata (url, licenses, scm, developers) from the parent
POM, but Maven Central validates the uploaded POM file directly. The flatten-maven-plugin
with ossrh mode creates a flattened POM that includes all inherited metadata and
resolved dependency versions, satisfying Sonatype Central Portal validation requirements.
@ancongui
ancongui merged commit c71c27c into develop Feb 11, 2026
4 checks passed
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.

1 participant