spring-projects / spring-boot

Spring Boot
https://spring.io/projects/spring-boot
Apache License 2.0
74.96k stars 40.65k forks source link

Why Spring Boot Maven Plugin repackage provided jars? #17829

Closed jliuold closed 5 years ago

jliuold commented 5 years ago

I mark a dependency provided because it is not necessary when runing, but it was repackaged to fatjar. I know exclude tag is useful to me. Change default repackage scope to runtime may make fatjar thinner. And add a scope tag list to configure the plugin is better.

philwebb commented 5 years ago

We want to include provided scope dependencies because they are typically jars required to run the the application. Some documentation about this is in the maven plugin documentation.

The request to support excluding provided scoped dependencies has already been discussed and in issue #8005