Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/modules/examples/pages/maven/maven-central.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
----
<properties>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>
----

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
Expand Down