Commit f80d23ad authored by Phillip Webb's avatar Phillip Webb

Clarify why you might not use the starter parent

Update reference documentation to make it clearer why you might not
always want to use the spring-boot-starter-parent.

Fixes gh-774
parent d41a47f2
...@@ -147,6 +147,12 @@ endif::[] ...@@ -147,6 +147,12 @@ endif::[]
</project> </project>
---- ----
TIP: The `spring-boot-starter-parent` is a great way to use Spring Boot, but it might
not be suitable all of the time. Sometimes you may need to inherit from a different
parent POM, or you might just not like our default settings. See
<<using-boot-maven-without-a-parent>> for an alternative solution that uses an `import`
scope.
[[getting-started-gradle-installation]] [[getting-started-gradle-installation]]
......
...@@ -64,11 +64,15 @@ If you import additional starters, you can safely omit the version number. ...@@ -64,11 +64,15 @@ If you import additional starters, you can safely omit the version number.
[[using-boot-maven-your-own-parent]] [[using-boot-maven-without-a-parent]]
==== Using your own parent POM ==== Using Spring Boot without the parent POM
If you don't want to use the Spring Boot starter parent, you can use your own and still No everyone likes inheriting from the `spring-boot-starter-parent` POM. You may have your
keep the benefit of the dependency management (but not the plugin management) using a own corporate standard parent that you need to use, or you may just prefer to explicitly
`scope=import` dependency: declare all your Maven configuration.
If you don't want to use the `spring-boot-starter-parent`, you can still keep the benefit
of the dependency management (but not the plugin management) by using a `scope=import`
dependency:
[source,xml,indent=0,subs="verbatim,quotes,attributes"] [source,xml,indent=0,subs="verbatim,quotes,attributes"]
---- ----
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment