From b4adfec212dd014774f27275c652fa75a5638930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Contreras=20Guill=C3=A9n?= Date: Wed, 11 Feb 2026 13:46:20 +0100 Subject: [PATCH] Add flatten-maven-plugin to maven-central profile for Sonatype POM validation 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. --- pom.xml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/pom.xml b/pom.xml index a8d8b01..fb6cb25 100644 --- a/pom.xml +++ b/pom.xml @@ -110,6 +110,7 @@ 3.6.2 3.2.8 0.10.0 + 1.6.0 @@ -466,6 +467,30 @@ required + + org.codehaus.mojo + flatten-maven-plugin + ${flatten-maven-plugin.version} + + ossrh + + + + flatten + process-resources + + flatten + + + + flatten.clean + clean + + clean + + + +