Skip to content

Commit 4b58eef

Browse files
committedMar 28, 2023
Merge branch '2.7.x' into 3.0.x
Closes gh-34788
2 parents d6dbf30 + 4705e82 commit 4b58eef

File tree

1 file changed

+2
-0
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc

1 file changed

+2
-0
lines changed
 

‎spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/packaging.adoc

+2
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@ Layout factories are always ignored if an explicit <<goals-repackage-parameters-
218218
=== Dependency Exclusion
219219
By default, both the `repackage` and the `run` goals will include any `provided` dependencies that are defined in the project.
220220
A Spring Boot project should consider `provided` dependencies as "container" dependencies that are required to run the application.
221+
Generally speaking, Spring Boot projects are not used as dependencies and are therefore unlikely to have any `optional` dependencies.
222+
When a project does have optional dependencies they too will be included by the `repackage` and `run` goals.
221223

222224
Some of these dependencies may not be required at all and should be excluded from the executable jar.
223225
For consistency, they should not be present either when running the application.

0 commit comments

Comments
 (0)