-
Notifications
You must be signed in to change notification settings - Fork 40.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Maven shade plugin configuration in spring-boot-starter-parent does not append META-INF/spring/*.imports files #31316
Comments
Thanks for the report. This is due to changes we made to the way that auto-configuration classes are found. You can fix your build by changing the <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/spring.handlers</resource>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/spring.schemas</resource>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/spring/org.springframework.boot.actuate.autoconfigure.web.ManagementContextConfiguration.imports</resource>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports</resource>
</transformer> |
We should update our |
Thanks a lot, that actually resolves the issue! 😎 |
@philwebb Thanks a lot for the quick response! ❤️ I assume this is the change you're referring to? If so, perhaps it would be helpful to mention the necessary changes in the release notes? Even though many rely on the |
This has now been fixed. I've also added a new section to the release notes. |
@philwebb Thanks a lot! ❤️ |
Hello everyone
We are using maven shade in latest version 3.3.0 to build our jar. When upgrading from Spring Boot 2.6.8 to 2.7.0 the actuator endpoints seem no longer to work in the shaded jar.
Since I am unsure if this is caused by spring boot or maven shade, therefore I raised the issue there too.
I created a small demo project to visualize the issue. All help is appreciated.
Thanks in advance!
The text was updated successfully, but these errors were encountered: