Skip to content

Commit 987a5f8

Browse files
committed
Recommend overriding licences and developers when using starter parent
Publishing to Maven Central requires spring-boot-starter-parent to declare its license and developers. When a user then uses spring-boot-starter-parent as their project's parent, these values are inherited and this is almost certainly unwanted. This commit updates the documentation to recommend and demonstrate overriding the license and developers that are inherited from the starter parent. Closes gh-18532
1 parent 89e050d commit 987a5f8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

spring-boot-project/spring-boot-docs/src/main/asciidoc/getting-started.adoc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,14 @@ The following listing shows a typical `pom.xml` file:
130130
<version>{spring-boot-version}</version>
131131
</parent>
132132
133+
<!-- Override inherited license and developers -->
134+
<licenses>
135+
<license />
136+
</licenses>
137+
<developers>
138+
<developer />
139+
</developers>
140+
133141
<!-- Add typical dependencies for a web application -->
134142
<dependencies>
135143
<dependency>
@@ -462,6 +470,13 @@ Open your favorite text editor and add the following:
462470
<version>{spring-boot-version}</version>
463471
</parent>
464472
473+
<licenses>
474+
<license />
475+
</licenses>
476+
<developers>
477+
<developer />
478+
</developers>
479+
465480
<!-- Additional lines to be added here... -->
466481
467482
ifeval::["{spring-boot-artifactory-repo}" != "release"]

0 commit comments

Comments
 (0)