From 3371b1c990658f18fbf1f1e9b172a1748df37a0b Mon Sep 17 00:00:00 2001 From: Nicolas Pepin-Perreault Date: Wed, 9 Feb 2022 10:48:12 +0100 Subject: [PATCH] build: flatten deployed POM Adds flatten-maven-plugin to the build pipeline. This will generate a flattened POM, which removes any POM hierarchy, substitutes all properties, removes non compile dependencies, and more. This solves issues when it comes to dependency management for consumers of this project by greatly reducing how much they have to care when it comes to dependency convergence. --- pom.xml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/pom.xml b/pom.xml index 6fc04300..cb362885 100644 --- a/pom.xml +++ b/pom.xml @@ -82,6 +82,7 @@ 1.6.1 + 1.2.2 @@ -465,6 +466,36 @@ + + + + org.codehaus.mojo + flatten-maven-plugin + ${plugin.version.flatten} + + ossrh + ${project.build.directory} + + + + flatten + + flatten + + process-resources + + + flatten.clean + + clean + + clean + + +