From 8d2b1236589ea3b4b96aec54350a7a7f475e0903 Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Wed, 17 Jul 2019 13:52:52 -0700 Subject: [PATCH] Document parent pom customization feature Closes gh-786 --- .../main/asciidoc/configuration-guide.adoc | 20 +++++++++++++++++++ initializr-docs/src/main/asciidoc/index.adoc | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/initializr-docs/src/main/asciidoc/configuration-guide.adoc b/initializr-docs/src/main/asciidoc/configuration-guide.adoc index b3591a00..d8f89035 100644 --- a/initializr-docs/src/main/asciidoc/configuration-guide.adoc +++ b/initializr-docs/src/main/asciidoc/configuration-guide.adoc @@ -853,6 +853,26 @@ repository,version mapping>> to override the default repository for a dependency +[[howto-configure-custom-parent-pom]] +=== Configure a custom parent POM +For Maven projects, you can configure a custom parent POM as follows: + +[source,yaml,indent=0] +---- + initializr: + env: + maven: + parent: + groupId: com.example + artifactId: my-parent + version: 1.0.0 + includeSpringBootBom : true +---- + +`includeSpringBootBom` is `false` by default. When set to `true`, the `spring-boot-dependencies` +bom is added to the `dependencyManagement` section with the version of Spring Boot used for the project. + + [[howto-dependency-starter-flag]] === Make sure a regular dependency brings the base starter If a dependency does not stand on its own (and specifically if it does not depend on an diff --git a/initializr-docs/src/main/asciidoc/index.adoc b/initializr-docs/src/main/asciidoc/index.adoc index 4cb260f3..a9805c39 100644 --- a/initializr-docs/src/main/asciidoc/index.adoc +++ b/initializr-docs/src/main/asciidoc/index.adoc @@ -1,5 +1,5 @@ = Spring Initializr Reference Guide -Stéphane Nicoll; Dave Syer +Stéphane Nicoll; Dave Syer; Madhura Bhave :doctype: book :idprefix: :idseparator: -