Document parent pom customization feature

Closes gh-786
This commit is contained in:
Madhura Bhave
2019-07-17 13:52:52 -07:00
parent a55d262152
commit 8d2b123658
2 changed files with 21 additions and 1 deletions

View File

@@ -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]] [[howto-dependency-starter-flag]]
=== Make sure a regular dependency brings the base starter === 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 If a dependency does not stand on its own (and specifically if it does not depend on an

View File

@@ -1,5 +1,5 @@
= Spring Initializr Reference Guide = Spring Initializr Reference Guide
Stéphane Nicoll; Dave Syer Stéphane Nicoll; Dave Syer; Madhura Bhave
:doctype: book :doctype: book
:idprefix: :idprefix:
:idseparator: - :idseparator: -