-
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
Custom layer definition does not pick up snapshots #23533
Comments
@tjuchniewicz thanks for the report and the sample but I don't understand your sample project. I've ran it and then extracting the layers without any modification and here is a partial output:
|
@snicoll That's really interesting...inside jar I see in
after I execute |
@tjuchniewicz Thanks for reporting this. It's rather fascinating as Stephane cannot reproduce the problem but I can, despite us both being on macOS, using the same version of Maven, and very similar versions of Java. I'll investigate and see if I can figure out why it doesn't work for me. |
The bug is due to Maven's handling of snapshot versions and the distinction between a base version and a version in certain circumstances. The latter replaces Stephane wasn't affected as he'd built and installed Spring Boot into his local Maven repository so he had artifacts named Our build didn't catch the problem either as it's in the process of building the artifacts that are being tested so it doesn't resolve them from repo.spring.io either. |
Works fine using spring-boot-maven-plugin 2.3.5.BUILD-SNAPSHOT. Thank you @wilkinsona |
Excellent. Thanks very much for trying a snapshot, @tjuchniewicz. |
I use Spring Boot 2.3.4 with custom layers.xml to configure jar layers.
Example provided here: https://docs.spring.io/spring-boot/docs/2.3.4.RELEASE/maven-plugin/reference/html/#repackage-layers-configuration does not pick up snapshots. Is
<include>*:*:*SNAPSHOT</include>
pattern correct?When I use default settings (no custom layer.xml) snapshots are handled correctly.
See example project to reproduce issue: https://github.com/tjuchniewicz/spring-boot-custom-layer-with-snapshots
The text was updated successfully, but these errors were encountered: