From c1796381e9c3ca5d75ee610d63988524253aafb0 Mon Sep 17 00:00:00 2001 From: Nicolas GERARD Date: Tue, 2 Dec 2025 09:36:25 +0100 Subject: [PATCH] docs(maven): Added more info on a maven reactor project --- .../examples/pages/maven/maven-central.adoc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/modules/examples/pages/maven/maven-central.adoc b/docs/modules/examples/pages/maven/maven-central.adoc index 9d807529d..e4a34ac68 100644 --- a/docs/modules/examples/pages/maven/maven-central.adoc +++ b/docs/modules/examples/pages/maven/maven-central.adoc @@ -748,6 +748,25 @@ $ mvn -Ppublication $ mvn jreleaser:deploy ---- +== Maven Multiple Subprojects + +In a maven multiple subproject setting, you can control the projects that are going to be deployed by setting the `maven.deploy.skip` property in the root and subproject pom's. + +[source,xml] +[subs="+macros,attributes,verbatim"] +---- + + true + +---- + +You also need to add `--non-recursive` to the `jreleaser:deploy` goal so that the staged artifacts are processed and uploaded only once. + +[source] +---- +$ mvn jreleaser:deploy --non-recursive +---- + == Gradle The following `build.gradle` file shows the minimum required configuration