mirror of
https://gitee.com/dcren/initializr.git
synced 2026-02-25 21:22:58 +08:00
Document parent pom customization feature
Closes gh-786
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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: -
|
||||||
|
|||||||
Reference in New Issue
Block a user